Authored by 陈峰

Merge branch 'hotfix/winLoaders' into 'release/9.12'

Hotfix/win loaders



See merge request !1535
... ... @@ -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
}), '');
}), '');
... ...