|
|
|
@ -22,6 +22,7 @@ import viteCompression from 'vite-plugin-compression'
|
|
|
|
|
import path from 'path' |
|
|
|
|
|
|
|
|
|
export default defineConfig({ |
|
|
|
|
base: process.env.NODE_ENV === 'production' ? './' : '/', |
|
|
|
|
plugins: [ |
|
|
|
|
vue(), |
|
|
|
|
vueJsx(), |
|
|
|
@ -30,7 +31,8 @@ export default defineConfig({
|
|
|
|
|
disable: false, |
|
|
|
|
threshold: 10240, |
|
|
|
|
algorithm: 'gzip', |
|
|
|
|
ext: '.gz' |
|
|
|
|
ext: '.gz', |
|
|
|
|
deleteOriginFile: false |
|
|
|
|
}) |
|
|
|
|
], |
|
|
|
|
build: { |
|
|
|
@ -43,7 +45,9 @@ export default defineConfig({
|
|
|
|
|
}, |
|
|
|
|
resolve: { |
|
|
|
|
alias: { |
|
|
|
|
'@': path.resolve(__dirname, 'src') |
|
|
|
|
'@': path.resolve(__dirname, 'src'), |
|
|
|
|
// resolve vue-i18n warning: You are running the esm-bundler build of vue-i18n.
|
|
|
|
|
'vue-i18n': 'vue-i18n/dist/vue-i18n.cjs.js' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|