123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- "use strict";
- module.exports = {};
- module.exports.none = (chunks) => chunks;
- module.exports.manual = (
- entryPointNames,
- compilation,
- htmlWebpackPluginOptions,
- ) => {
- const chunks = htmlWebpackPluginOptions.chunks;
- if (!Array.isArray(chunks)) {
- return entryPointNames;
- }
-
-
- return chunks.filter((entryPointName) => {
- return compilation.entrypoints.has(entryPointName);
- });
- };
- module.exports.auto = module.exports.none;
|