Skip to content

Commit d59b09c

Browse files
committed
remove extract css
1 parent 7177492 commit d59b09c

File tree

4 files changed

+17
-52
lines changed

4 files changed

+17
-52
lines changed

build/vue-loader.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = {
77
sourceMap: isProduction
88
? config.build.productionSourceMap
99
: config.dev.cssSourceMap,
10-
extract: isProduction
10+
extract: false
1111
}),
1212
transformToRequire: {
1313
video: 'src',

build/webpack.prod.conf.js

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ var webpack = require('webpack')
44
var config = require('../config')
55
var merge = require('webpack-merge')
66
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')
1111

1212
var env = process.env.NODE_ENV === 'testing'
1313
? require('../config/test.env')
@@ -19,8 +19,7 @@ var webpackConfig = merge(baseWebpackConfig, {
1919
},
2020
module: {
2121
rules: utils.styleLoaders({
22-
sourceMap: config.build.productionSourceMap,
23-
extract: true
22+
sourceMap: config.build.productionSourceMap
2423
})
2524
},
2625
devtool: config.build.productionSourceMap ? '#source-map' : false,
@@ -40,18 +39,18 @@ var webpackConfig = merge(baseWebpackConfig, {
4039
warnings: false
4140
},
4241
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-
}
5442
})
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+
// })
5554
]
5655
})
5756

build/webpack.test.conf.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

config/test.env.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)