Skip to content

Instantly share code, notes, and snippets.

@chathurangat
Created February 21, 2018 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chathurangat/df1138fc16e0b7f478419afc24764474 to your computer and use it in GitHub Desktop.
Save chathurangat/df1138fc16e0b7f478419afc24764474 to your computer and use it in GitHub Desktop.
const path = require('path');
module.exports = {
target: 'node',
entry: {
app: [
'babel-polyfill',
'./index.js'
]
},
output: {
path: path.resolve(__dirname, 'build'),
filename: 'app.bundle.js'
},
module: {
loaders: [{
test: /\.js?$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: ['env']
}
}]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment