* Applies the plugin by registering its hooks on the compiler. * @param {Compiler} compiler the compiler instance * @returns {void}
(compiler)
| 40 | * @returns {void} |
| 41 | */ |
| 42 | apply(compiler) { |
| 43 | const { output } = compiler.options; |
| 44 | output.library = this.library; |
| 45 | new EnableLibraryPlugin(this.library.type).apply(compiler); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | module.exports = LibraryTemplatePlugin; |