Merge pull request #8 from sapuser2017/patch-1

Update vite.config.js
This commit is contained in:
若依
2022-03-18 14:57:09 +08:00
committed by GitHub

View File

@ -37,5 +37,22 @@ export default defineConfig(({ mode, command }) => {
}
},
},
//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();
}
}
}
}
],
},
},
}
})