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