0
我想使用webpackdevserver和reactjs,並找不到如何讓我的livereload工作?這是我的配置設置:如何獲得webpack的livereload工作?
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: "./app/app.js",
output: {
path: path.resolve(__dirname, "build"),
publicPath: "/dist/",
filename: "foss.js",
sourceMapFilename: "foss.map"
},
devtool: '#source-map',
module: {
loaders: [{
loader: 'babel',
exclude: /node_modules/
}]
},
devServer: { inline: true }
}
這是一個webpack選項還是我需要在其他地方設置?