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
639 B

const webpack = require('webpack');
const path = require('path');
module.exports = {
devtool: 'source-map',
entry: [
'./example/index',
],
output: {
path: path.join(__dirname, 'example/static'),
filename: 'bundle.js',
publicPath: '/static/',
},
plugins: [
new webpack.optimize.OccurrenceOrderPlugin(),
new webpack.HotModuleReplacementPlugin(),
],
module: {
loaders: [{
test: /\.jsx?$/,
loaders: ['babel-loader'],
exclude: /node_modules/,
}],
},
devServer: {
hot: true,
contentBase: path.join(__dirname, 'example'),
compress: true,
port: 9000,
},
};