白舜

Results 6 comments of 白舜

最近有个同事出现了这个问题,我把我写的关于此问题的文章发给了他。顺便想看看搜索引擎收录情况。于是看到了几篇相关的文章,都是针对`el-button`处理。 互联网上最新的几篇文章: * https://blog.csdn.net/weixin_45042868/article/details/123909412 * https://juejin.cn/post/7084614555598323719 如果仍然对样式冲突问题有疑惑,不妨试试我这个: 解决(solve): **https://github.com/whidy/elementplus-tailwindcss-best-practice** 这个仓库在测试的时候用的还是beta,不过同事刚问我的时候我看了,在当前版本 `2.1.9` 中依然适用。 如果想了解细节,也欢迎阅读这个最佳实践的文章(标题有点大,本来想写一系列的,结果懒了~)

I try to install `fast-glob` by myself, it runs ok now. Maybe not a good solution, but can fix the error at least.

@hoosin 200还不多,我每天20个就做不动了.

根据楼上几位大佬的指点,我发现还是有很多朋友没法解决,我在个人博客总结了一下。可以尝试阅读解决: * [ElementUI自定义主题报错“primordials is not defined”最佳解决方案](https://www.whidy.net/elementui-customize-theme-with-primordials-is-not-defined-error) 如果不想点开,我大致总结下: ``` npm i element-themex element-theme-chalk -D ``` 装这两个就可以了。 其它的跟官方文档一样, ``` node_modules/.bin/et -i ``` 创建默认的配置文件`element-variables.scss`,根据需要修改后再执行 ``` node_modules/.bin/et ``` 进行编译,可能会出现非常多的红色提醒,无视也行。 > 具体细节可参见顶部提到的文章总结

I have same problem. when type `id`, always come out `import { } from 'module';` in html file without inner `script` tag. and when type `p`, I wish come out...

你可以试试创建一个postcss.config.js,然后用 ``` module.exports = { plugins: [ require('postcss-px2rem')({ remUnit: 75 }) ] } ``` 可以参考我的半成品示例[postcss学习](https://github.com/whidy/mobileweb) 或者不通过postcss直接单独用px2rem-loader,例如: ``` { test: /\.scss$/, use: ExtractTextPlugin.extract({ fallback: "style-loader", use: [{ loader: "css-loader" }, {...