break.js 363 B

12345678910
  1. export default class AddAssetHtmlPlugin {
  2. apply(compiler: WebpackCompilerType) {
  3. compiler.plugin('compilation', (compilation: WebpackCompilationType) => {
  4. compilation.plugin('html-webpack-plugin-before-html', (callback: Callback<any>) => {
  5. addAllAssetsToCompilation(this.assets, compilation, htmlPluginData, callback);
  6. });
  7. });
  8. }
  9. }