4 Star 71 Fork 21

albert / json-schema-editor-vue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 718 Bytes
一键复制 编辑 原始数据 按行查看 历史
albert 提交于 2023-04-26 21:31 . :zap:ant-design按需引入,缩小包体积
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())
}
}
JavaScript
1
https://gitee.com/zyqwst/json-schema-editor-vue.git
git@gitee.com:zyqwst/json-schema-editor-vue.git
zyqwst
json-schema-editor-vue
json-schema-editor-vue
master

搜索帮助