12345678910111213141516171819202122232425262728293031323334353637383940 |
- '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;
|