比如,我做了css样式的修改,当我想要在不刷新当前页面html的前提下,让样式渲染出来,就需要用到热模块更新了,相关配置: 在webpack.config.js文件中,对devServer和plugins进行配置 const webpack = require('webpack') // 移入webpack 在plugins中需要用到它的热模块加载方法 module.exports = { dev...
比如,我做了css样式的修改,当我想要在不刷新当前页面html的前提下,让样式渲染出来,就需要用到热模块更新了,相关配置: 在webpack.config.js文件中,对devServer和plugins进行配置 const webpack = require('webpack') // 移入webpack 在plugins中需要用到它的热模块加载方法 module.exports = { dev...