Created
May 14, 2018 18:39
-
-
Save enricopolanski/d91ca62e37ac7debde311d73d9e7a65b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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