File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,9 @@ CSSVariablesCollectorPlugin.prototype = {
32
32
// for libraries we check that the file is within the libraries theme path
33
33
// in all other cases with no filename (indicates calculated variables)
34
34
// or in case of variables in standalone less files we just include them!
35
+ const regex = new RegExp ( `/${ this . config . libPath } /themes/` ) ;
35
36
const include = ! filename ||
36
- ( this . config . libPath ? filename . startsWith ( `/resources/ ${ this . config . libPath } /themes/` ) : true ) ;
37
+ ( this . config . libPath ? regex . test ( filename ) : true ) ;
37
38
return include ;
38
39
} ,
39
40
@@ -45,9 +46,11 @@ CSSVariablesCollectorPlugin.prototype = {
45
46
const vars = { } ;
46
47
Object . keys ( this . vars ) . forEach ( ( key ) => {
47
48
const override = this . vars [ key ] . updateAfterEval && varsOverride [ key ] !== undefined ;
48
- if ( override && process && process . env && process . env . LESS_OPENUI5_CSSVARS_REPORT_OVERRIDE ) {
49
+ /*
50
+ if (override) {
49
51
console.log(`Override variable "${key}" from "${this.vars[key].css}" to "${varsOverride[key].css}"`);
50
52
}
53
+ */
51
54
vars [ key ] = {
52
55
css : override ? varsOverride [ key ] . css : this . vars [ key ] . css ,
53
56
export : this . vars [ key ] . export
You can’t perform that action at this time.
0 commit comments