Last active
August 16, 2016 12:49
-
-
Save Sekhmet/fbe259b1a2f012d576e32d410c1cfc5d to your computer and use it in GitHub Desktop.
webpack config
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: './main.js', | |
output: { | |
path: './', | |
filename: 'index.js' | |
}, | |
devServer: { | |
inline: true, | |
port: 8080, | |
historyApiFallback: true | |
}, | |
module: { | |
loaders: [ | |
{ | |
test: /\.js$/, | |
exclude: '/node_modules/', | |
loader: 'babel', | |
query: { | |
presets: ['es2015', 'react'] | |
} | |
} | |
] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment