摘要: const HtmlWebpackPlugin = require('html-webpack-plugin'); ... chainWebpack: config => { config .plugin('html') .use(HtmlWebpackPlugin) .tap(options => { ... 阅读全文
posted @ 2019-04-30 14:45 黑夜蓝天 阅读(6390) 评论(0) 推荐(1) 编辑
摘要: 当你在开发时,如果需要哪些修改,可直接打印 chainWebpack或者 configureWebpack 下的config参数,其中包含了大量已经集成好的 插件,你只需要针对目前需要进行定制化即可。 preload 是告诉浏览器页面必定需要的资源,浏览器一定会加载这些资源 prefetch 是告诉 阅读全文
posted @ 2019-04-30 11:12 黑夜蓝天 阅读(11205) 评论(0) 推荐(1) 编辑