提交 c657967f 编写于 作者: fxy060608's avatar fxy060608

chore(h5): optimization.moduleIds = 'hashed'

上级 c5de32e9
......@@ -87,7 +87,7 @@ function updateComponentJson (name, jsonObj, usingComponents = true, type = 'Com
const oldJsonObj = JSON.parse(oldJsonStr)
jsonObj.usingComponents = oldJsonObj.usingComponents || {}
jsonObj.usingAutoImportComponents = oldJsonObj.usingAutoImportComponents || {}
if(oldJsonObj.genericComponents) {
if (oldJsonObj.genericComponents) {
jsonObj.genericComponents = oldJsonObj.genericComponents
}
if (oldJsonObj.usingGlobalComponents) { // 复制 global components(针对不支持全局 usingComponents 的平台)
......
......@@ -155,6 +155,9 @@ module.exports = {
}
},
plugins,
optimization: {
moduleIds: 'hashed'
},
devServer: {
watchOptions: require('../util').getWatchOptions()
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册