前景提要
HDC调试需求开发(15万预算),能者速来!>>>
RT, 网上文章清一色都说需要配置这个插件来热部署。
我也赞同热部署很重要很方便,但我现在没有配置这个插件,明明也能热部署自动刷新啊?下面是我的webpack配置:
module.exports = { entry: __dirname + "/app/main.js", output: { path: __dirname + "/public", filename: "bundle.js" }, module: { loaders: [ { test: /\.json$/, loader: "json" }, { test: /\.js$/, exclude: /node_modules/, loader: 'babel' }, { test: /\.css$/, loader: 'style!css' }, { test: /\.less$/, loader: "style!css!less" } ] }, devServer: { contentBase: "./public", colors: true, historyApiFallback: true, inline: true } }
所以,这个插件配置与否,到底有什么区别呢?