by aaron-lebo · 9y ago · 0 comments
Plus it's literally a 20 line config file to do so.
module.exports = {
entry: './src/app.js',
output: {
path: './bin',
filename: 'app.bundle.js',
},
module: {
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader'
}]
}
}
Include your app.bundle.js file in your webpage and you are good to go.https://medium.com/webpack/announcing-the-new-webpack-cli-75...