Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/queuepro/node_modules/laravel-mix/src/webpackPlugins/ drwxrwxr-x | |
| Viewing file: Select action/file-type: let File = require('../File');
let path = require('path');
class MockEntryPlugin {
/**
* @param {import('../Mix')} mix
*/
constructor(mix) {
// TODO: Remove in Mix 7 -- Here for backwards compat if a plugin requires this file
this.mix = mix || global.Mix;
}
/**
* Handle the deletion of the temporary mix.js
* output file that was generated by webpack.
*
* This file is created when the user hasn't
* requested any JavaScript compilation, but
* webpack still requires an entry.
*
* @param {import("webpack").Compiler} compiler
*/
apply(compiler) {
compiler.hooks.done.tap('MockEntryPlugin', stats => {
const assets = stats.toJson().assets || [];
const temporaryOutputFile = assets.find(asset => asset.name === 'mix.js');
if (!temporaryOutputFile) {
return;
}
delete stats.compilation.assets[temporaryOutputFile.name];
File.find(
path.resolve(this.mix.config.publicPath, temporaryOutputFile.name)
).delete();
});
}
}
module.exports = MockEntryPlugin;
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0043 ]-- |