Skip to content

Instantly share code, notes, and snippets.

@hulkish
Created March 14, 2017 16:32
Show Gist options
  • Save hulkish/5d225beda0fc6cc1c1332befc00f0edf to your computer and use it in GitHub Desktop.
Save hulkish/5d225beda0fc6cc1c1332befc00f0edf to your computer and use it in GitHub Desktop.
{
"plugins": [
"react-hot-loader/babel"// this should not be used, but still shows up if you inspect bundle
]
}
console.log('whats up');
{
entry: 'entry.js',
output: {
path: 'dist',
filename: '[name].[hash].js'
},
module: {
rules: [
{
test: /\.jsx?/,
use: [
{
loader: 'babel-loader',
options: {
babelrc: false,
cacheDirectory: true,
presets: [
['env', {
targets: {
browsers: ['> 1%']
}
}]
]
}
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment