Skip to content

Instantly share code, notes, and snippets.

@Synvox
Created February 7, 2017 04:55
Show Gist options
  • Save Synvox/92a64d3cee07dde61014c81daa148ab2 to your computer and use it in GitHub Desktop.
Save Synvox/92a64d3cee07dde61014c81daa148ab2 to your computer and use it in GitHub Desktop.
Example webpack
module.exports = {
entry: './index.js',
output: {
filename: './bundle.js',
path: '/'
},
module: {
rules: [
{
test: /\.js?$/,
loader: 'babel-loader', // npm install --save-dev babel-loader
exclude: /node_modules/,
},
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment