nav tabs on admin dashboard
This commit is contained in:
24
node_modules/webpack/lib/node/NodeChunkTemplatePlugin.js
generated
vendored
24
node_modules/webpack/lib/node/NodeChunkTemplatePlugin.js
generated
vendored
@@ -5,19 +5,23 @@
|
||||
|
||||
"use strict";
|
||||
|
||||
const ConcatSource = require("webpack-sources").ConcatSource;
|
||||
const { ConcatSource } = require("webpack-sources");
|
||||
|
||||
class NodeChunkTemplatePlugin {
|
||||
|
||||
apply(chunkTemplate) {
|
||||
chunkTemplate.plugin("render", function(modules, chunk) {
|
||||
const source = new ConcatSource();
|
||||
source.add(`exports.ids = ${JSON.stringify(chunk.ids)};\nexports.modules = `);
|
||||
source.add(modules);
|
||||
source.add(";");
|
||||
return source;
|
||||
});
|
||||
chunkTemplate.plugin("hash", function(hash) {
|
||||
chunkTemplate.hooks.render.tap(
|
||||
"NodeChunkTemplatePlugin",
|
||||
(modules, chunk) => {
|
||||
const source = new ConcatSource();
|
||||
source.add(
|
||||
`exports.ids = ${JSON.stringify(chunk.ids)};\nexports.modules = `
|
||||
);
|
||||
source.add(modules);
|
||||
source.add(";");
|
||||
return source;
|
||||
}
|
||||
);
|
||||
chunkTemplate.hooks.hash.tap("NodeChunkTemplatePlugin", hash => {
|
||||
hash.update("node");
|
||||
hash.update("3");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user