Open-source IoT Platform - Device management, data collection, processing and visualization.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
676 B

var webpack = require('webpack'),
port = 3000;
module.exports = {
entry: [
'webpack-dev-server/client?http://localhost:' + port,
'webpack/hot/only-dev-server',
'./lib/app.js'
],
output: {
'path': './app/',
'filename': 'app.js',
'publicPath': '/'
},
module: {
loaders: [
{test: /\.js$/, exclude: /node_modules/, loaders: ['react-hot', 'babel']}
]
},
plugins: [
new webpack.HotModuleReplacementPlugin()
],
devtool: 'cheap-source-map',
devServer: {
port: port,
info: false,
historyApiFallback: true,
hot: true,
contentBase: './app',
host: 'localhost'
}
};