Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created February 16, 2016 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuck0523/21b6e121a10d5a0963cf to your computer and use it in GitHub Desktop.
Save chuck0523/21b6e121a10d5a0963cf to your computer and use it in GitHub Desktop.
var path = require('path')
var webpack = require('webpack')
module.exports = {
entry: ['./src/index'],
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js'
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
compressor: {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin()
],
module: {
loaders: [
{
test: /\.css$/,
loaders: ['style', 'css']
},
{
test: /\.scss$/,
loaders: ["style", "css", "sass"]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment