Skip to content

Instantly share code, notes, and snippets.

@wojciech-bilicki
Created July 28, 2017 17:35
Show Gist options
  • Save wojciech-bilicki/bd54597bf21be6f0025339a4949de3af to your computer and use it in GitHub Desktop.
Save wojciech-bilicki/bd54597bf21be6f0025339a4949de3af to your computer and use it in GitHub Desktop.
Webpack config
const path = require('path');
module.exports = {
context: __dirname,
entry: './js/App.js',
devtool: 'source-map',
output: {
path: path.join(__dirname, 'public'),
filename: 'bundle.js'
},
resolve: {
extensions: ['.js', '.jsx', '.json']
},
stats: {
colors: true,
reasons: true,
chunks: false
},
module: {
rules: [
{
test: /\.jsx?$/,
loader: 'babel-loader'
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment