-
Notifications
You must be signed in to change notification settings - Fork 1
/
vue.config.js
32 lines (29 loc) · 946 Bytes
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const { defineConfig } = require('@vue/cli-service')
const LodashModuleReplacementPlugin = require("lodash-webpack-plugin")
const webpack = require('webpack')
const path = require('path')
module.exports = defineConfig({
publicPath: './',
productionSourceMap:false,
transpileDependencies: true,
pages: {
index: {
entry: 'examples/main.js',
template: 'public/index.html',
filename: 'index.html'
}
},
configureWebpack:{
plugins: [
new webpack.IgnorePlugin({
resourceRegExp: /^\.\/locale$/,
contextRegExp: /moment$/,
}),
]
},
chainWebpack(config) {
config.resolve.alias.set('@ant-design/icons/lib/dist$', path.resolve('./packages/cron-input/ant-icon.js'))
if(process.env.analyzer) config.plugin('webpack-report').use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin)
config.plugin("loadshReplace").use(new LodashModuleReplacementPlugin())
}
})