Skip to content

Instantly share code, notes, and snippets.

@kcliu
Created July 25, 2016 03:24
Show Gist options
  • Save kcliu/73924a33da9e524dd659f34b01bcb70d to your computer and use it in GitHub Desktop.
Save kcliu/73924a33da9e524dd659f34b01bcb70d to your computer and use it in GitHub Desktop.
import path from 'path';
const config = {
entry: './src/app.js',
output: {
path: './public/build',
filename: 'app.bundle.js',
},
debug: true,
devServer: {
contentBase: './public',
publicPath: '/build/',
},
module: {
loaders: [
{
test: /\.css$/,
loader: 'style!css!postcss',
},
{
test: /\.scss$/,
loader: 'style!css!sass',
},
{
test: /\.jsx?$/,
include: path.join(__dirname, '../src'),
loader: 'babel-loader',
},
]
}
};
export default config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment