File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ const config = require('./webpack.base.conf')
3
3
const ExtractTextPlugin = require ( 'extract-text-webpack-plugin' )
4
4
const UglifyJSPlugin = require ( 'uglifyjs-webpack-plugin' )
5
5
const path = require ( 'path' )
6
+ const OptimizeCSSPlugin = require ( 'optimize-css-assets-webpack-plugin' )
6
7
7
8
config . output . filename = 'vue-image-lightbox.min.js'
8
9
config . output . libraryTarget = 'umd'
@@ -52,6 +53,14 @@ config.plugins = (config.plugins || []).concat([
52
53
}
53
54
} ) ,
54
55
56
+ new OptimizeCSSPlugin ( {
57
+ cssProcessorOptions : {
58
+ options : {
59
+ safe : true
60
+ }
61
+ }
62
+ } ) ,
63
+
55
64
new webpack . optimize . OccurrenceOrderPlugin ( ) ,
56
65
] )
57
66
Original file line number Diff line number Diff line change 42
42
"extract-text-webpack-plugin" : " ^2.0.0" ,
43
43
"file-loader" : " ^0.11.1" ,
44
44
"html-webpack-plugin" : " ^2.28.0" ,
45
- "optimize-css-assets-webpack-plugin" : " ^1.3.2 " ,
45
+ "optimize-css-assets-webpack-plugin" : " ^2.0.0 " ,
46
46
"rimraf" : " ^2.6.1" ,
47
47
"style-loader" : " ^0.13.1" ,
48
48
"uglifyjs-webpack-plugin" : " ^0.4.3" ,
Original file line number Diff line number Diff line change @@ -1299,7 +1299,7 @@ cssesc@^0.1.0:
1299
1299
version "0.1.0"
1300
1300
resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-0.1.0.tgz#c814903e45623371a0477b40109aaafbeeaddbb4"
1301
1301
1302
- " cssnano@>=2.6.1 <4" , cssnano@^3.4.0 :
1302
+ " cssnano@>=2.6.1 <4 " :
1303
1303
version "3.10.0"
1304
1304
resolved "https://registry.yarnpkg.com/cssnano/-/cssnano-3.10.0.tgz#4f38f6cea2b9b17fa01490f23f1dc68ea65c1c38"
1305
1305
dependencies :
2973
2973
object-assign "^4.0.1"
2974
2974
pinkie-promise "^2.0.0"
2975
2975
2976
- optimize-css-assets-webpack-plugin@^1.3.2 :
2977
- version "1.3.2 "
2978
- resolved "https://registry.yarnpkg.com/optimize-css-assets-webpack-plugin/-/optimize-css-assets-webpack-plugin-1.3.2 .tgz#eb27456e21eefbd8080f31e8368c59684e585a2c "
2976
+ optimize-css-assets-webpack-plugin@^2.0.0 :
2977
+ version "2.0.0 "
2978
+ resolved "https://registry.yarnpkg.com/optimize-css-assets-webpack-plugin/-/optimize-css-assets-webpack-plugin-2.0.0 .tgz#51cae71230ec91a4c157649715e47498e0cb460b "
2979
2979
dependencies :
2980
- cssnano "^3.4.0"
2981
2980
underscore "^1.8.3"
2982
2981
webpack-sources "^0.1.0"
2983
2982
You can’t perform that action at this time.
0 commit comments