Skip to content

Instantly share code, notes, and snippets.

@marensas
Created January 29, 2018 09:57
Show Gist options
  • Save marensas/420a0a4cbd06da99cf409c0418345388 to your computer and use it in GitHub Desktop.
Save marensas/420a0a4cbd06da99cf409c0418345388 to your computer and use it in GitHub Desktop.
Webpack 5
var webpack = require('webpack');
var path = require('path');
module.exports = {
entry: './src',
output: {
path: path.resolve(__dirname, './public'),
filename: 'index.js'
},
module: {
rules: [
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel-loader',
query: {
presets: ['env']
}
}
]
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment