Created
January 28, 2017 03:10
-
-
Save stariqmi/c8c0946816b0ba5acc36ed2c13f8800e to your computer and use it in GitHub Desktop.
Webpack config file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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