From 238480c32294ed23f62d1d479c857de32e4cc499 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 13 Apr 2018 01:01:26 +0430 Subject: [PATCH] fix: commons group working with windows --- lib/builder/webpack/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder/webpack/client.js b/lib/builder/webpack/client.js index 82f2971fcc..706419e21b 100644 --- a/lib/builder/webpack/client.js +++ b/lib/builder/webpack/client.js @@ -100,7 +100,7 @@ export default class WebpackClientConfig extends WebpackBaseConfig { config.optimization.splitChunks.cacheGroups.commons === undefined ) { config.optimization.splitChunks.cacheGroups.commons = { - test: /node_modules\/(vue|vue-loader|vue-router|vuex|vue-meta|core-js|babel-runtime|es6-promise|axios|webpack|setimmediate|timers-browserify|process|regenerator-runtime|cookie|js-cookie|is-buffer|dotprop|nuxt\.js)\//, + test: /node_modules[\\/](vue|vue-loader|vue-router|vuex|vue-meta|core-js|babel-runtime|es6-promise|axios|webpack|setimmediate|timers-browserify|process|regenerator-runtime|cookie|js-cookie|is-buffer|dotprop|nuxt\.js)[\\/]/, chunks: 'all', priority: 10, name: 'commons'