File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ var WebpackObfuscator = (function () {
1313 }
1414 WebpackObfuscator . prototype . apply = function ( compiler ) {
1515 var _this = this ;
16- compiler . plugin ( 'compilation ', function ( compilation ) {
17- compilation . plugin ( "optimize-chunk-assets" , function ( chunks , callback ) {
16+ compiler . hooks . compilation . tap ( 'WebpackObfuscator ', function ( compilation ) {
17+ compilation . hooks . optimizeChunkAssets . tap ( 'WebpackObfuscator' , function ( chunks ) {
1818 var files = [ ] ;
1919 chunks . forEach ( function ( chunk ) {
2020 chunk [ 'files' ] . forEach ( function ( file ) {
@@ -58,7 +58,6 @@ var WebpackObfuscator = (function () {
5858 compilation . assets [ file ] = new RawSource ( obfuscationResult . toString ( ) ) ;
5959 }
6060 } ) ;
61- callback ( ) ;
6261 } ) ;
6362 } ) ;
6463 } ;
You can’t perform that action at this time.
0 commit comments