Skip to content

Instantly share code, notes, and snippets.

@petyosi
Created February 9, 2018 14:46
Show Gist options
  • Save petyosi/3862ebc8fc26fca5d6f66aef6751893f to your computer and use it in GitHub Desktop.
Save petyosi/3862ebc8fc26fca5d6f66aef6751893f to your computer and use it in GitHub Desktop.
const path = require('path');
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, './dist/'),
filename: 'bundle.js'
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/,
query: {
presets: ['es2015']
}
},
{
test: /\.css$/,
loaders: ['style-loader', 'css-loader']
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment