Skip to content

Instantly share code, notes, and snippets.

@copleykj
Forked from JBreit/webpack.config.js
Last active May 12, 2017 02:58
Show Gist options
  • Save copleykj/46365e06ac9815425a8ee430bf622457 to your computer and use it in GitHub Desktop.
Save copleykj/46365e06ac9815425a8ee430bf622457 to your computer and use it in GitHub Desktop.
module.exports = {
entry: "./src/main.js",
output: {
filename: "./dist/bundle.js"
},
module: {
rules: [
{
test: [/\.js$/, /\.es6$/],
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: ['env', 'react', 'es2015']
}
}
}
]
},
resolve: {
extensions: ['.js', '.es6']
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment