Skip to content

Instantly share code, notes, and snippets.

@enricopolanski
Created May 14, 2018 18:39
Show Gist options
  • Save enricopolanski/d91ca62e37ac7debde311d73d9e7a65b to your computer and use it in GitHub Desktop.
Save enricopolanski/d91ca62e37ac7debde311d73d9e7a65b to your computer and use it in GitHub Desktop.
const path = require('path');
const productionConfig = merge([
parts.generateSourceMaps({ type: 'source-map' }),
]);
module.exports = {
entry: './src/app.js',
output: {
path: path.join(__dirname, 'public'),
filename: 'bundle.js',
},
module: {
loaders: [
{
test: /\.(js|jsx)$/,
exclude: [/node_modules/, /public/],
loader: 'babel-loader',
query: {
presets: ['env'],
}
},
],
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment