mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
10 lines
363 B
JavaScript
10 lines
363 B
JavaScript
export default class AddAssetHtmlPlugin {
|
|
apply(compiler: WebpackCompilerType) {
|
|
compiler.plugin('compilation', (compilation: WebpackCompilationType) => {
|
|
compilation.plugin('html-webpack-plugin-before-html', (callback: Callback<any>) => {
|
|
addAllAssetsToCompilation(this.assets, compilation, htmlPluginData, callback);
|
|
});
|
|
});
|
|
}
|
|
}
|