Created
March 14, 2017 16:32
-
-
Save hulkish/5d225beda0fc6cc1c1332befc00f0edf to your computer and use it in GitHub Desktop.
This file contains 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
Show hidden characters
{ | |
"plugins": [ | |
"react-hot-loader/babel"// this should not be used, but still shows up if you inspect bundle | |
] | |
} |
This file contains 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
console.log('whats up'); |
This file contains 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
{ | |
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