背景webpack构建过程中的hooks都有什么呢?除了在网上看一些文章,还可以通过更直接的办法,结合官方文档快速让你进入webpack的hook世界写一个入口文件//index.jsconstwebpack=require("webpack");constpath=require("path");constPrintHooksPlugin=require("./PrintHooksPlugin");constconfig={context:path.resolve(__dirname),mode:"production",optimization:{minimize:false,},entr
背景webpack构建过程中的hooks都有什么呢?除了在网上看一些文章,还可以通过更直接的办法,结合官方文档快速让你进入webpack的hook世界写一个入口文件//index.jsconstwebpack=require("webpack");constpath=require("path");constPrintHooksPlugin=require("./PrintHooksPlugin");constconfig={context:path.resolve(__dirname),mode:"production",optimization:{minimize:false,},entr