转载 :转载链接
提要:jeecg vue3版本添加了element-plus组件,开发正常,打包报错
解决 postcss.config.js
var charsetRemoval = () => {
return {
postcssPlugin: 'internal:charset-removal',
AtRule: {
charset: atRule => {
if (atRule.name === 'charset') {
atRule.remove()
}
}
}
}
}
module.exports = () => {
return {
plugins: [
//其他postcss插件,
charsetRemoval()
]
}
}