nav tabs on admin dashboard
This commit is contained in:
11
node_modules/webpack/lib/NamedChunksPlugin.js
generated
vendored
11
node_modules/webpack/lib/NamedChunksPlugin.js
generated
vendored
@@ -5,7 +5,6 @@
|
||||
"use strict";
|
||||
|
||||
class NamedChunksPlugin {
|
||||
|
||||
static defaultNameResolver(chunk) {
|
||||
return chunk.name || null;
|
||||
}
|
||||
@@ -15,13 +14,13 @@ class NamedChunksPlugin {
|
||||
}
|
||||
|
||||
apply(compiler) {
|
||||
compiler.plugin("compilation", (compilation) => {
|
||||
compilation.plugin("before-chunk-ids", (chunks) => {
|
||||
chunks.forEach((chunk) => {
|
||||
if(chunk.id === null) {
|
||||
compiler.hooks.compilation.tap("NamedChunksPlugin", compilation => {
|
||||
compilation.hooks.beforeChunkIds.tap("NamedChunksPlugin", chunks => {
|
||||
for (const chunk of chunks) {
|
||||
if (chunk.id === null) {
|
||||
chunk.id = this.nameResolver(chunk);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user