Karsa 2 years ago
parent
commit
76a652ac12
1 changed files with 16 additions and 0 deletions
  1. 16 0
      vite.config.ts

+ 16 - 0
vite.config.ts

@@ -33,4 +33,20 @@ export default defineConfig({
 			'@': path.resolve(__dirname, './src')
 		},
 	},
+	css: {
+		postcss: {
+			plugins: [
+				{
+					postcssPlugin: 'internal:charset-removal',
+					AtRule: {
+						charset: (atRule) => {
+							if (atRule.name === 'charset') {
+								atRule.remove()
+							}
+						}
+					}
+				}
+			]
+		}
+	}
 })