若依
2022-03-18 2c952e5af0fd388a99659565637639a5abd53149
Merge pull request #8 from sapuser2017/patch-1

Update vite.config.js
已修改1个文件
17 ■■■■■ 文件已修改
vite.config.js 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vite.config.js
@@ -37,5 +37,22 @@
        }
      },
    },
     //fix:error:stdin>:7356:1: warning: "@charset" must be the first rule in the file
    css: {
      postcss: {
        plugins: [
          {
            postcssPlugin: 'internal:charset-removal',
            AtRule: {
              charset: (atRule) => {
                if (atRule.name === 'charset') {
                  atRule.remove();
                }
              }
            }
          }
        ],
      },
    },
  }
})