On this page

new EnableLibraryPlugin(type, options?): EnableLibraryPlugin
Attributes
library type that should be available
options:
{EnableLibraryPluginOptions} options of EnableLibraryPlugin
Returns:
{EnableLibraryPlugin}
  • options {EnableLibraryPluginOptions}
  • type <string>
webpack.library.EnableLibraryPlugin.apply(compiler): void
  • compiler {Compiler} the compiler instance
  • Returns: {void}

Apply the plugin


webpack.library.EnableLibraryPlugin.checkEnabled(compiler, type): void
  • compiler {Compiler} the compiler instance
  • type <string> type of library
  • Returns: {void}

webpack.library.EnableLibraryPlugin.setEnabled(compiler, type): void
  • compiler {Compiler} the compiler instance
  • type <string> type of library
  • Returns: {void}