Skip to content

Instantly share code, notes, and snippets.

@mihailsitnic
Created September 18, 2018 05:10
Show Gist options
  • Save mihailsitnic/ad94d00306d98911f9bf08a23080b6ec to your computer and use it in GitHub Desktop.
Save mihailsitnic/ad94d00306d98911f9bf08a23080b6ec to your computer and use it in GitHub Desktop.
module.exports = {
entry: 'src/lib/index.js',
output: {
path: __dirname + '/src/lib/index.js',
filename: 'bundle.js'
},
resolve: {
extensions: ['', '.js', '.jsx']
},
module: {
loaders: [
{
test: /\.jsx?$/,
loader: 'babel',
exclude: /node_modules/,
query: {
cacheDirectory: true,
presets: ['react', 'es2015']
}
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment