一品网
  • 首页

vite打包时报错 <stdin>:348:0: warning: "@charset" must be the first rule in the file 的解决办


在根目录下创建postcss.config.js

module.exports = {
  plugins: [
    {
      postcssPlugin: 'internal:charset-removal',
      AtRule: {
        charset: (atRule) => {
          if (atRule.name === 'charset') {
            atRule.remove()
          }
        }
      }
    }
  ]
}
uniappvue3Vite

相关


uni-app技术分享| 10分钟实现一个简易uniapp视频通话

vue2与vue3中全局配置axios的不同点

vue3中的watch与vue2中的watch的对比

vue3 使用 data、computed、methods

vue3 绑定多个model技巧之 抽取useVModel

【uniapp】改善中大型uniapp小程序项目开发体验

uniapp image mode="widthFix"等等的用法

Vue3 与 Vue2的不同之处一 简单介绍 Vue 核心最基本的功能

vue3 + ts详细教程

Vue3 + axios + vue-vben-admin 实现单文件上传功能

Vue3 + axios + vue-vben-admin 实现单文件上传功能

form-create 3.0 版本发布,好用的Vue3版本动态表单生成组件

标签

一品网 冀ICP备14022925号-6