html压缩css压缩js压缩 html 文件的压缩html-webpack-plugin html-webpack-plugin的另一个作用:在打包的时候,动态生成index.html文件,并将bundle.js文件内联到html文件中 css文件的压缩使用 optimize-css-assets-webpack-plugin,同时使用 cssnano。 js文件的压缩内置了 uglifyjs-webpack-plugin(就不需要再安装相关插件了 ???)