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

48
node_modules/laravel-mix/src/components/Version.js generated vendored Normal file
View File

@@ -0,0 +1,48 @@
let glob = require('glob');
let path = require('path');
let webpack = require('webpack');
let VersionFilesTask = require('../tasks/VersionFilesTask');
class Version {
/**
* Register the component.
*
* @param {Array} files
*/
register(files = []) {
files = flatten(
[].concat(files).map(filePath => {
if (File.find(filePath).isDirectory()) {
filePath += path.sep + '**/*';
}
if (!filePath.includes('*')) return filePath;
return glob.sync(
new File(filePath).forceFromPublic().relativePath(),
{ nodir: true }
);
})
);
Mix.addTask(new VersionFilesTask({ files }));
}
/**
* webpack plugins to be appended to the master config.
*/
webpackPlugins() {
let WebpackChunkHashPlugin = require('webpack-chunk-hash');
return [
new webpack[
Mix.inProduction()
? 'HashedModuleIdsPlugin'
: 'NamedModulesPlugin'
](),
new WebpackChunkHashPlugin()
];
}
}
module.exports = Version;