mirror of
https://github.com/Ssl1S/json-schema-editor-vue.git
synced 2025-12-30 01:37:55 +08:00
28 lines
718 B
JavaScript
28 lines
718 B
JavaScript
const LodashModuleReplacementPlugin = require("lodash-webpack-plugin")
|
|
const webpack = require('webpack')
|
|
const path = require('path')
|
|
module.exports = {
|
|
publicPath: './',
|
|
productionSourceMap: false,
|
|
pages: {
|
|
index: {
|
|
entry: 'examples/main.js',
|
|
template: 'public/index.html',
|
|
filename: 'index.html'
|
|
}
|
|
},
|
|
configureWebpack:{
|
|
plugins: [
|
|
new webpack.IgnorePlugin({
|
|
resourceRegExp: /^\.\/locale$/,
|
|
contextRegExp: /moment$/,
|
|
}),
|
|
]
|
|
},
|
|
chainWebpack(config) {
|
|
if(process.env.analyzer) config.plugin('webpack-report').use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin)
|
|
|
|
config.plugin("loadshReplace").use(new LodashModuleReplacementPlugin())
|
|
}
|
|
|
|
} |