Commit 8cc9e32f authored by 郝聪敏's avatar 郝聪敏

Merge branch 'feature/fix_lodash' into 'master'

fix: 修改lodash插件

See merge request !100
parents dfb5e9c3 3f6b05e2
...@@ -21,7 +21,9 @@ module.exports = { ...@@ -21,7 +21,9 @@ module.exports = {
// 移除 preload 插件(针对生产环境首屏请求数进行优化) preload 插件的用途:https://cli.vuejs.org/zh/guide/html-and-static-assets.html#preload // 移除 preload 插件(针对生产环境首屏请求数进行优化) preload 插件的用途:https://cli.vuejs.org/zh/guide/html-and-static-assets.html#preload
config.plugins.delete("preload"); config.plugins.delete("preload");
config.plugin("lodashReplace").use(new lodashWebpackPlugin()); if (IS_PROD) {
config.plugin("loadshReplace").use(new lodashWebpackPlugin());
}
config.module config.module
.rule("images") .rule("images")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment