webpack-12 代码压缩 1、uglifyjs-webpack-plugin // js压缩 [内置] 2、optimize-css-assets-webpack-plugin // css压缩 3、html-webpack-plugin // html压缩 执行以下的命令、生成的文件在dist文件夹中 自己手动创建index.html 进行引入search.js npm run build