Last active
July 27, 2016 09:33
-
-
Save bngsudheer/03b38824983f75f59b28e7118729aeea to your computer and use it in GitHub Desktop.
Webpack config to make a build using ES6 sources
This file contains hidden or 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: "./index.js", | |
output: { | |
path: __dirname, | |
filename: "build.js" | |
}, | |
module: { | |
loaders: [ | |
{ test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/}, | |
] | |
}, | |
resolve: { | |
extensions: ['', '.js', '.jsx'] | |
} | |
}; | |
/* Remember to create .babelrc with the contents | |
{ | |
"presets": ["es2015", "react"] | |
} | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment