nav tabs on admin dashboard
This commit is contained in:
15
node_modules/webpack/lib/node/NodeEnvironmentPlugin.js
generated
vendored
15
node_modules/webpack/lib/node/NodeEnvironmentPlugin.js
generated
vendored
@@ -11,14 +11,17 @@ const CachedInputFileSystem = require("enhanced-resolve/lib/CachedInputFileSyste
|
||||
|
||||
class NodeEnvironmentPlugin {
|
||||
apply(compiler) {
|
||||
compiler.inputFileSystem = new CachedInputFileSystem(new NodeJsInputFileSystem(), 60000);
|
||||
compiler.inputFileSystem = new CachedInputFileSystem(
|
||||
new NodeJsInputFileSystem(),
|
||||
60000
|
||||
);
|
||||
const inputFileSystem = compiler.inputFileSystem;
|
||||
compiler.outputFileSystem = new NodeOutputFileSystem();
|
||||
compiler.watchFileSystem = new NodeWatchFileSystem(compiler.inputFileSystem);
|
||||
compiler.plugin("before-run", (compiler, callback) => {
|
||||
if(compiler.inputFileSystem === inputFileSystem)
|
||||
inputFileSystem.purge();
|
||||
callback();
|
||||
compiler.watchFileSystem = new NodeWatchFileSystem(
|
||||
compiler.inputFileSystem
|
||||
);
|
||||
compiler.hooks.beforeRun.tap("NodeEnvironmentPlugin", compiler => {
|
||||
if (compiler.inputFileSystem === inputFileSystem) inputFileSystem.purge();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user