Skip to content

Instantly share code, notes, and snippets.

@Synvox
Created November 15, 2018 02:30
Show Gist options
  • Save Synvox/2463901246780463027963efc2f4fc77 to your computer and use it in GitHub Desktop.
Save Synvox/2463901246780463027963efc2f4fc77 to your computer and use it in GitHub Desktop.
const path = require('path')
process.env.NODE_ENV = 'development'
module.exports = {
entry: {
app: ['./src/index.js']
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name]-bundle.js'
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: ['react-app']
}
}
}
]
},
optimization: {
noEmitOnErrors: true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment