Skip to content

Instantly share code, notes, and snippets.

@dapperAuteur
Created October 24, 2016 19:52
Show Gist options
  • Save dapperAuteur/7da58857958966487192a52f8efc2411 to your computer and use it in GitHub Desktop.
Save dapperAuteur/7da58857958966487192a52f8efc2411 to your computer and use it in GitHub Desktop.
var webpack = require('webpack');
const path = require('path');
module.exports = {
entry: [
'webpack-dev-server/client?https://0.0.0.0:8080',
'webpack/hot/only-dev-server',
'./app/index.js'
],
output: {
path: path.join(__dirname, 'build'),
filename: "bundle.js"
},
devtool: "source-map",
module: {
loaders: [
{
test: /\.jsx?$/,
loader: 'react-hot!babel-loader',
exclude: /node_modules/
},
{
"test": /\.scss$/,
"loaders": ["style", "css?sourceMap", "sass?sourceMap"]
}
]
},
"devServer": {
contentBase: './build',
hot: true
},
"plugins": [
new webpack.HotModuleReplacementPlugin()
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment