tl-rtc-file

This commit is contained in:
tangshimin
2021-08-05 16:26:20 +08:00
parent a28336e328
commit ca98ccca4e
63 changed files with 22762 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
class DeleteCssJs {
apply(compiler) {
compiler.hooks.emit.tapAsync(this.constructor.name, (compilation, callback) => {
compilation.getAssets().forEach((asset) => {
const pathname = asset.name;
if(pathname.includes('cssJsDist')){
delete compilation.assets[asset.name];
}
})
callback()
})
}
}
module.exports = DeleteCssJs;