Skip to content

Instantly share code, notes, and snippets.

@hulkish
Created March 14, 2017 16:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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