refactor: webpack vendor, postcss + fixes
This commit is contained in:
@@ -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')
|
||||
]
|
||||
})
|
||||
|
Reference in New Issue
Block a user