|
|
@ -7,6 +7,8 @@ import viteCompression from "vite-plugin-compression";
|
|
|
|
const postCssScss = require("postcss-scss");
|
|
|
|
const postCssScss = require("postcss-scss");
|
|
|
|
const postcssRTLCSS = require("postcss-rtlcss");
|
|
|
|
const postcssRTLCSS = require("postcss-rtlcss");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const viteCompressionFilter = /\.(js|mjs|json|css|html|svg)$/i;
|
|
|
|
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [
|
|
|
|
plugins: [
|
|
|
@ -20,9 +22,11 @@ export default defineConfig({
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
viteCompression({
|
|
|
|
viteCompression({
|
|
|
|
algorithm: "gzip",
|
|
|
|
algorithm: "gzip",
|
|
|
|
|
|
|
|
filter: viteCompressionFilter,
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
viteCompression({
|
|
|
|
viteCompression({
|
|
|
|
algorithm: "brotliCompress",
|
|
|
|
algorithm: "brotliCompress",
|
|
|
|
|
|
|
|
filter: viteCompressionFilter,
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
css: {
|
|
|
|
css: {
|
|
|
|