UNPKG

laravel-mix

Version:

Laravel Mix is an elegant wrapper around Webpack for the 80% use case.

20 lines (16 loc) 442 B
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;