Created
July 25, 2016 03:24
-
-
Save kcliu/73924a33da9e524dd659f34b01bcb70d 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
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