updated npm modules
This commit is contained in:
2
node_modules/laravel-mix/src/components/Extract.js
generated
vendored
2
node_modules/laravel-mix/src/components/Extract.js
generated
vendored
@@ -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,
|
||||
|
||||
4
node_modules/laravel-mix/src/components/Preprocessor.js
generated
vendored
4
node_modules/laravel-mix/src/components/Preprocessor.js
generated
vendored
@@ -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;
|
||||
|
||||
|
||||
3
node_modules/laravel-mix/src/components/Vue.js
generated
vendored
3
node_modules/laravel-mix/src/components/Vue.js
generated
vendored
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user