Authored by 陈峰

Merge branch 'release/9.12' of http://git.yoho.cn/fe/yohobuywap-node into release/9.12

... ... @@ -22,25 +22,25 @@ module.exports = yo()
commons: {
chunks: 'all',
name: 'vendors',
test: /node_modules\/(yoho-jquery[$\/]|core-js|yoho-cookie|yoho-qs|babel-runtime|yoho-jquery-lazyload)/, //eslint-disable-line
test: /node_modules[\\/](yoho-jquery[$\/]|core-js|yoho-cookie|yoho-qs|babel-runtime|yoho-jquery-lazyload)/, //eslint-disable-line
},
vue: {
priority: 1,
chunks: 'all',
name: 'vue',
test: /node_modules\/vue/,
test: /node_modules[\\/]vue/,
},
eachart: {
priority: 1,
chunks: 'all',
name: 'eachart',
test: /node_modules\/(echart|zrender)/,
test: /node_modules[\\/](echart|zrender)/,
},
swiper: {
priority: 1,
chunks: 'all',
name: 'swiper',
test: /node_modules\/(yoho-swiper)/,
test: /node_modules[\\/](yoho-swiper)/,
}
}
}
... ...
... ... @@ -31,7 +31,7 @@ module.exports = function(source) {
}
return `
case '${moduleName}.${pageName}':
return import(/* webpackChunkName: "page.${moduleName}.${pageName}" */ './${path.relative(this.context, file)}');`; //eslint-disable-line
return import(/* webpackChunkName: "page.${moduleName}.${pageName}" */ './${path.relative(this.context, file).split(path.sep).join("/")}');`; //eslint-disable-line
}), '');
}), '');
... ...