Skip to content

Commit

Permalink
fix: vite.config css
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjackwills committed Oct 19, 2024
1 parent 813d360 commit 8af95e4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export default defineConfig({
vue({
template: { transformAssetUrls }
}),
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vite-plugin
vuetify({
autoImport: true,
}),
Expand Down Expand Up @@ -89,6 +88,13 @@ export default defineConfig({
viteCompression({ algorithm: 'brotliCompress', filter: /\.(js|mjs|json|css)$/i }),
viteCompression({ algorithm: 'gzip', filter: /\.(js|mjs|json|css)$/i }),
],
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler',
},
},
},
define: {
'process.env': {},
'import.meta.env.BUILD_DATE': Date.now(),
Expand Down

0 comments on commit 8af95e4

Please sign in to comment.