@@ -4,10 +4,10 @@ var webpack = require('webpack')
4
4
var config = require ( '../config' )
5
5
var merge = require ( 'webpack-merge' )
6
6
var baseWebpackConfig = require ( './webpack.base.conf' )
7
- var CopyWebpackPlugin = require ( 'copy-webpack-plugin' )
8
- var HtmlWebpackPlugin = require ( 'html-webpack-plugin' )
9
- var ExtractTextPlugin = require ( 'extract-text-webpack-plugin' )
10
- var OptimizeCSSPlugin = require ( 'optimize-css-assets-webpack-plugin' )
7
+ // var CopyWebpackPlugin = require('copy-webpack-plugin')
8
+ // var HtmlWebpackPlugin = require('html-webpack-plugin')
9
+ // var ExtractTextPlugin = require('extract-text-webpack-plugin')
10
+ // var OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
11
11
12
12
var env = process . env . NODE_ENV === 'testing'
13
13
? require ( '../config/test.env' )
@@ -19,8 +19,7 @@ var webpackConfig = merge(baseWebpackConfig, {
19
19
} ,
20
20
module : {
21
21
rules : utils . styleLoaders ( {
22
- sourceMap : config . build . productionSourceMap ,
23
- extract : true
22
+ sourceMap : config . build . productionSourceMap
24
23
} )
25
24
} ,
26
25
devtool : config . build . productionSourceMap ? '#source-map' : false ,
@@ -40,18 +39,18 @@ var webpackConfig = merge(baseWebpackConfig, {
40
39
warnings : false
41
40
} ,
42
41
sourceMap : true
43
- } ) ,
44
- // extract css into its own file
45
- new ExtractTextPlugin ( {
46
- filename : utils . assetsPath ( '[name].css' )
47
- } ) ,
48
- // Compress extracted CSS. We are using this plugin so that possible
49
- // duplicated CSS from different components can be deduped.
50
- new OptimizeCSSPlugin ( {
51
- cssProcessorOptions : {
52
- safe : true
53
- }
54
42
} )
43
+ // // extract css into its own file
44
+ // new ExtractTextPlugin({
45
+ // filename: utils.assetsPath('[name].css')
46
+ // }),
47
+ // // Compress extracted CSS. We are using this plugin so that possible
48
+ // // duplicated CSS from different components can be deduped.
49
+ // new OptimizeCSSPlugin({
50
+ // cssProcessorOptions: {
51
+ // safe: true
52
+ // }
53
+ // })
55
54
]
56
55
} )
57
56
0 commit comments