npm and error messages

This commit is contained in:
2018-10-27 03:51:47 -05:00
parent 692ab70565
commit 025a403027
29601 changed files with 2759363 additions and 14 deletions

56
node_modules/laravel-mix/src/components/Extract.js generated vendored Normal file
View File

@@ -0,0 +1,56 @@
let webpack = require('webpack');
class Extract {
/**
* Create a new component instance.
*/
constructor() {
this.extractions = [];
}
/**
* Register the component.
*
* @param {*} libs
* @param {string} output
*/
register(libs, output) {
this.extractions.push({ libs, output });
}
/**
* Assets to append to the webpack entry.
*
* @param {Entry} entry
*/
webpackEntry(entry) {
this.extractions = this.extractions.map(
entry.addExtraction.bind(entry)
);
// If we are extracting vendor libraries, then we also need
// to extract Webpack's manifest file to assist with caching.
if (this.extractions.length) {
this.extractions.push(
path.join(entry.base, 'manifest').replace(/\\/g, '/')
);
}
}
/**
* webpack plugins to be appended to the master config.
*/
webpackPlugins() {
// If we're extracting any vendor libraries, then we
// need to add the CommonChunksPlugin to strip out
// all relevant code into its own file.
if (this.extractions.length) {
return new webpack.optimize.CommonsChunkPlugin({
names: this.extractions,
minChunks: Infinity
});
}
}
}
module.exports = Extract;