refactor: webpack vendor, postcss + fixes

This commit is contained in:
NGPixel
2018-01-26 20:22:31 -05:00
parent 6227690c94
commit 1be3234ba1
8 changed files with 517 additions and 69 deletions

View File

@@ -3,6 +3,7 @@ const merge = require('webpack-merge')
const CleanWebpackPlugin = require('clean-webpack-plugin')
const UglifyJSPlugin = require('uglifyjs-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const common = require('./webpack.common.js')
@@ -17,6 +18,7 @@ module.exports = merge(common, {
new UglifyJSPlugin(),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
})
}),
new ExtractTextPlugin('css/bundle.css')
]
})