Revert "Merge branch 'hotfix/winLoaders' into 'release/9.12'"
This reverts merge request !1535
Showing
2 changed files
with
5 additions
and
5 deletions
@@ -22,25 +22,25 @@ module.exports = yo() | @@ -22,25 +22,25 @@ module.exports = yo() | ||
22 | commons: { | 22 | commons: { |
23 | chunks: 'all', | 23 | chunks: 'all', |
24 | name: 'vendors', | 24 | name: 'vendors', |
25 | - test: /node_modules[\\/](yoho-jquery[$\/]|core-js|yoho-cookie|yoho-qs|babel-runtime|yoho-jquery-lazyload)/, //eslint-disable-line | 25 | + test: /node_modules\/(yoho-jquery[$\/]|core-js|yoho-cookie|yoho-qs|babel-runtime|yoho-jquery-lazyload)/, //eslint-disable-line |
26 | }, | 26 | }, |
27 | vue: { | 27 | vue: { |
28 | priority: 1, | 28 | priority: 1, |
29 | chunks: 'all', | 29 | chunks: 'all', |
30 | name: 'vue', | 30 | name: 'vue', |
31 | - test: /node_modules[\\/]vue/, | 31 | + test: /node_modules\/vue/, |
32 | }, | 32 | }, |
33 | eachart: { | 33 | eachart: { |
34 | priority: 1, | 34 | priority: 1, |
35 | chunks: 'all', | 35 | chunks: 'all', |
36 | name: 'eachart', | 36 | name: 'eachart', |
37 | - test: /node_modules[\\/](echart|zrender)/, | 37 | + test: /node_modules\/(echart|zrender)/, |
38 | }, | 38 | }, |
39 | swiper: { | 39 | swiper: { |
40 | priority: 1, | 40 | priority: 1, |
41 | chunks: 'all', | 41 | chunks: 'all', |
42 | name: 'swiper', | 42 | name: 'swiper', |
43 | - test: /node_modules[\\/](yoho-swiper)/, | 43 | + test: /node_modules\/(yoho-swiper)/, |
44 | } | 44 | } |
45 | } | 45 | } |
46 | } | 46 | } |
@@ -31,7 +31,7 @@ module.exports = function(source) { | @@ -31,7 +31,7 @@ module.exports = function(source) { | ||
31 | } | 31 | } |
32 | return ` | 32 | return ` |
33 | case '${moduleName}.${pageName}': | 33 | case '${moduleName}.${pageName}': |
34 | - return import(/* webpackChunkName: "page.${moduleName}.${pageName}" */ './${path.relative(this.context, file).split(path.sep).join("/")}');`; //eslint-disable-line | 34 | + return import(/* webpackChunkName: "page.${moduleName}.${pageName}" */ './${path.relative(this.context, file)}');`; //eslint-disable-line |
35 | }), ''); | 35 | }), ''); |
36 | }), ''); | 36 | }), ''); |
37 | 37 |
-
Please register or login to post a comment