This repository was archived by the owner on Jan 13, 2025. It is now read-only.
File tree 3 files changed +36
-42
lines changed
3 files changed +36
-42
lines changed Original file line number Diff line number Diff line change 59
59
"mkdirp" : " ^0.5.1" ,
60
60
"node-sass" : " ^3.7.0" ,
61
61
"npm-run-all" : " ^2.3.0" ,
62
- "postcss-loader" : " ^0.9.1 " ,
62
+ "postcss-loader" : " ^1.2.2 " ,
63
63
"raw-loader" : " ^0.5.1" ,
64
64
"sass-loader" : " ^4.1.1" ,
65
65
"semver" : " ^5.3.0" ,
69
69
"stylelint" : " ^7.8.0" ,
70
70
"stylelint-config-standard" : " ^16.0.0" ,
71
71
"stylelint-order" : " ^0.2.2" ,
72
- "stylelint-scss" : " ^1.2 .1" ,
72
+ "stylelint-scss" : " ^1.4 .1" ,
73
73
"stylelint-selector-bem-pattern" : " ^1.0.0" ,
74
74
"tape" : " ^4.6.0" ,
75
75
"testdouble" : " ^1.6.0" ,
105
105
"commitizen" : {
106
106
"path" : " ./node_modules/cz-conventional-changelog"
107
107
}
108
- },
109
- "dependencies" : {
110
- "stylelint-scss" : " ^1.4.1"
111
108
}
112
109
}
Original file line number Diff line number Diff line change 121
121
pointer-events : none ;
122
122
// Imitate native disabled functionality
123
123
user-select : none ;
124
+ }
124
125
125
- @include mdc-theme-dark (" .mdc-select" , true) {
126
- @include mdc-theme-prop (color , text- disabled- on- dark);
127
- @include mdc-select-dd-arrow-svg-bg_ (ffffff, .38 );
126
+ @each $sel in (" mdc-select--disabled" , " mdc-select[disabled]" ) {
127
+ .#{$sel } {
128
+ @include mdc-theme-dark (" .mdc-select" , true) {
129
+ @include mdc-theme-prop (color , text- disabled- on- dark);
130
+ @include mdc-select-dd-arrow-svg-bg_ (ffffff, .38 );
128
131
129
- border-bottom : 1px dotted rgba (white , .38 );
132
+ border-bottom : 1px dotted rgba (white , .38 );
133
+ }
130
134
}
131
135
}
132
136
Original file line number Diff line number Diff line change @@ -46,6 +46,28 @@ if (LIFECYCLE_EVENT == 'test' || LIFECYCLE_EVENT == 'test:watch') {
46
46
process . env . BABEL_ENV = 'test' ;
47
47
}
48
48
49
+ const CSS_LOADER_CONFIG = [
50
+ {
51
+ loader : 'css-loader' ,
52
+ options : {
53
+ sourceMap : true ,
54
+ } ,
55
+ } ,
56
+ {
57
+ loader : 'postcss-loader' ,
58
+ options : {
59
+ plugins : ( ) => [ require ( 'autoprefixer' ) ( { grid : false } ) ] ,
60
+ } ,
61
+ } ,
62
+ {
63
+ loader : 'sass-loader' ,
64
+ options : {
65
+ sourceMap : true ,
66
+ includePaths : glob . sync ( 'packages/*/node_modules' ) . map ( ( d ) => path . join ( __dirname , d ) ) ,
67
+ } ,
68
+ } ,
69
+ ] ;
70
+
49
71
module . exports = [ {
50
72
name : 'js-components' ,
51
73
entry : {
@@ -145,43 +167,14 @@ module.exports = [{
145
167
module : {
146
168
rules : [ {
147
169
test : / \. s c s s $ / ,
148
- use : IS_DEV ? [ {
149
- loader : 'style-loader' ,
150
- } ,
151
- {
152
- loader : 'css-loader' ,
153
- options : {
154
- sourceMap : true ,
155
- } ,
156
- } ,
157
- {
158
- loader : 'postcss-loader' ,
159
- } ,
160
- {
161
- loader : 'sass-loader' ,
162
- options : {
163
- sourceMap : true ,
164
- } ,
165
- } ] : ExtractTextPlugin . extract ( 'css-loader!postcss-loader!sass-loader' ) ,
170
+ use : IS_DEV ? [ { loader : 'style-loader' } ] . concat ( CSS_LOADER_CONFIG ) : ExtractTextPlugin . extract ( {
171
+ fallback : 'style-loader' ,
172
+ use : CSS_LOADER_CONFIG ,
173
+ } ) ,
166
174
} ] ,
167
175
} ,
168
176
plugins : [
169
177
new ExtractTextPlugin ( '[name].' + ( IS_PROD ? 'min.' : '' ) + 'css' ) ,
170
178
createBannerPlugin ( ) ,
171
- new webpack . LoaderOptionsPlugin ( {
172
- debug : true ,
173
- options : {
174
- context : __dirname ,
175
- output : {
176
- path : OUT_PATH ,
177
- } ,
178
- postcss : {
179
- plugins : ( ) => [ require ( 'autoprefixer' ) ( { grid : false } ) ] ,
180
- } ,
181
- sassLoader : {
182
- includePaths : glob . sync ( 'packages/*/node_modules' ) . map ( ( d ) => path . join ( __dirname , d ) ) ,
183
- } ,
184
- } ,
185
- } ) ,
186
179
] ,
187
180
} ] ;
You can’t perform that action at this time.
0 commit comments