Skip to content

Instantly share code, notes, and snippets.

@stariqmi
Created January 28, 2017 03:10
Show Gist options
  • Save stariqmi/c8c0946816b0ba5acc36ed2c13f8800e to your computer and use it in GitHub Desktop.
Save stariqmi/c8c0946816b0ba5acc36ed2c13f8800e to your computer and use it in GitHub Desktop.
Webpack config file
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: {
main: './public/js/main.js'
},
output: {
path: __dirname + '/public/js/',
filename: '[name].bundle.js'
},
module: {
loaders: [
{
test: /.jsx?$/,
loader: 'babel-loader',
exclude: /node_modules/,
query: {
presets: ['es2015', 'react']
}
}
]
},
watch: true
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment