为什么我跟老师敲,设置hot为true以后 也加了 new webpack.HotModuleReplacementPlugin() 但是局部自动刷新就是不成功。设置hot为false页面能自动刷新。
path = require()
= require()
= require()
isDev = process..=== config = {
: : path.(__dirname): {
: : path.(__dirname)
}: {
: [
{
: : }{
: : [
]
}{
: : [
]
}{
: : [
{
: : {
: : }
}
]
}]
}: [
.DefinePlugin({
: {
: isDev ? : }
})()]
}
(isDev) {
config.= config.= {
: : : {
: }: }
config..(
.HotModuleReplacementPlugin().NoEmitOnErrorsPlugin()
)
}
.= config
