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
+30
View File
@@ -0,0 +1,30 @@
let Task = require('./Task');
let FileCollection = require('../FileCollection');
class VersionFilesTask extends Task {
/**
* Run the task.
*/
run() {
this.files = new FileCollection(this.data.files);
this.assets = this.data.files.map(file => {
file = new File(file);
Mix.manifest.hash(file.pathFromPublic());
return file;
});
}
/**
* Handle when a relevant source file is changed.
*
* @param {string} updatedFile
*/
onChange(updatedFile) {
Mix.manifest.hash(new File(updatedFile).pathFromPublic()).refresh();
}
}
module.exports = VersionFilesTask;