react-npm-menu
Version:
A side menu for the user to navigate around the site. Future versions of this menu will include access controls, that will show / hide items on the menu.
37 lines (34 loc) • 721 B
JavaScript
var webpack = require('webpack');
var WebpackNotifierPlugin = require('webpack-notifier');
module.exports = {
entry: [
'webpack/hot/dev-server',
'webpack-hot-middleware/client',
'./src/index.js'
],
output: {
path: __dirname,
publicPath: '/',
filename: 'bundle.js'
},
devServer: {
inline: true,
port: 7777
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin(),
new WebpackNotifierPlugin({title: 'Webpack'})
],
module: {
loaders: [{
exclude: /node_modules/,
loaders: ['react-hot','babel']
},
]
},
resolve: {
extensions: ['', '.js', '.jsx']
}
};