Files
w4rpservices/node_modules/laravel-mix/src/webpackPlugins/ManifestPlugin.js
2018-10-27 03:51:47 -05:00

20 lines
442 B
JavaScript
Vendored

class ManifestPlugin {
/**
* Apply the plugin.
*
* @param {Object} compiler
*/
apply(compiler) {
compiler.plugin('emit', (curCompiler, callback) => {
let stats = curCompiler.getStats().toJson();
// Handle the creation of the mix-manifest.json file.
Mix.manifest.transform(stats).refresh();
callback();
});
}
}
module.exports = ManifestPlugin;