Skip to content

Instantly share code, notes, and snippets.

@oeb25
Last active October 8, 2015 08:01
Show Gist options
  • Save oeb25/cc95dbc60ab02cdd7373 to your computer and use it in GitHub Desktop.
Save oeb25/cc95dbc60ab02cdd7373 to your computer and use it in GitHub Desktop.
// curl https://gist.githubusercontent.com/oeb25/cc95dbc60ab02cdd7373/raw/e55628c5d63596d969031f52a11c82339d46d575/webpack.config.js > webpack.config.js
// mkdir src && touch src/main.js && npm i -D webpack babel-loader
module.exports = {
entry: './src/main.js',
output: {
path: './build',
filename: 'bundle.js'
},
module: {
loaders: [
{ test: /\.js$/, loader: 'babel' }
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment