|
@@ -1,3 +1,4 @@
|
|
|
|
|
+const webpack = require('webpack')
|
|
|
const { defineConfig } = require('@vue/cli-service')
|
|
const { defineConfig } = require('@vue/cli-service')
|
|
|
module.exports = defineConfig({
|
|
module.exports = defineConfig({
|
|
|
transpileDependencies: true,
|
|
transpileDependencies: true,
|
|
@@ -7,6 +8,9 @@ module.exports = defineConfig({
|
|
|
configureWebpack: {
|
|
configureWebpack: {
|
|
|
output: {
|
|
output: {
|
|
|
libraryExport: 'default'
|
|
libraryExport: 'default'
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ plugins: [
|
|
|
|
|
+ new webpack.ContextReplacementPlugin(/moment[/\\]locale$/, /zh-cn$/)
|
|
|
|
|
+ ]
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|