updated npm modules

This commit is contained in:
2019-05-20 20:43:45 -05:00
parent 2319197b81
commit f166b72b7d
1113 changed files with 8758 additions and 12227 deletions

View File

@@ -101,7 +101,7 @@ class Extract {
createCacheGroup(extraction) {
const libsPattern = extraction.libs.join('|');
const pattern = new RegExp(`node_modules[\\\\/](${libsPattern})`, 'i');
const pattern = new RegExp(`(?<!node_modules.*)[\\\\/]node_modules[\\\\/](${libsPattern})[\\\\/]`, 'i');
return {
test: pattern,

View File

@@ -19,7 +19,7 @@ class Preprocessor {
webpackRules() {
let rules = [];
this.details.forEach(preprocessor => {
this.details.forEach((preprocessor, index) => {
let outputPath = preprocessor.output.filePath
.replace(Config.publicPath + path.sep, path.sep)
.replace(/\\/g, '/');
@@ -43,7 +43,7 @@ class Preprocessor {
Config.processCssUrls
? true
: Mix.isUsing('sourcemaps'),
ident: 'postcss',
ident: `postcss${index}`,
plugins: (function() {
let plugins = Config.postCss;

View File

@@ -24,7 +24,8 @@ class Vue {
webpackConfig(webpackConfig) {
webpackConfig.module.rules.push({
test: /\.vue$/,
loader: 'vue-loader'
loader: 'vue-loader',
options: Config.vue || {}
});
webpackConfig.plugins.push(new VueLoaderPlugin());