31 lines
613 B
JavaScript
31 lines
613 B
JavaScript
var path = require('path');
|
|
var webpack = require('webpack');
|
|
|
|
module.exports = {
|
|
devtool: 'eval',
|
|
entry: [
|
|
'webpack-dev-server/client?https://notica.us',
|
|
'webpack/hot/only-dev-server',
|
|
'./src/index'
|
|
],
|
|
output: {
|
|
path: path.join(__dirname, 'public'),
|
|
filename: 'bundle.js',
|
|
publicPath: ''
|
|
},
|
|
plugins: [
|
|
new webpack.HotModuleReplacementPlugin(),
|
|
new webpack.NoErrorsPlugin()
|
|
],
|
|
watchOptions: {
|
|
poll: true
|
|
},
|
|
module: {
|
|
loaders: [{
|
|
test: /\.js$/,
|
|
loaders: ['react-hot', 'babel-loader'],
|
|
include: path.join(__dirname, 'src')
|
|
}]
|
|
}
|
|
};
|