Skip to content

Instantly share code, notes, and snippets.

@rohanBagchi
Last active May 13, 2017 19:20
Show Gist options
  • Select an option

  • Save rohanBagchi/fb22e95a11f1befd0c7e6656cef3ea3a to your computer and use it in GitHub Desktop.

Select an option

Save rohanBagchi/fb22e95a11f1befd0c7e6656cef3ea3a to your computer and use it in GitHub Desktop.
Basic webpack config
var path = require('path');
module.exports = {
entry: './app/index.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist')
},
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets:['react']
}
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment