Created
February 4, 2017 20:28
-
-
Save 15Dkatz/74ce0d5fb3b1982681973af2b59d8bcc to your computer and use it in GitHub Desktop.
webpack configuration for webpack-es6-boilerplate
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
module.exports = { | |
entry: ['babel-polyfill', './app/index.js'], | |
output: { | |
path: __dirname + '/build', | |
filename: 'bundle.js' | |
}, | |
module: { | |
loaders: [ | |
{ | |
test: /\.js$/, // a regular expression that catches .js files | |
exclude: /node_modules/, | |
loader: 'babel-loader' | |
} | |
] | |
}, | |
devServer: { | |
port: 3000, // most common port | |
contentBase: './build', | |
inline: true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment