web
2025-03-19 ae8d9d380854076d0b2da145576ae08f14a8f835
vite.config.js
@@ -39,20 +39,12 @@
    },
    //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();
                }
              }
            }
          }
        ]
      }
      preprocessorOptions: {
        css: { charset: false },
        scss: {
          api: 'modern-compiler',
        },
      },
    }
  }
})