File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -108,15 +108,18 @@ module.exports = {
108
108
/*
109
109
Workaround single module style by deleting the entire
110
110
style tags and contents that matches the other brand
111
+
112
+ uncomment to see module "work" but for two styles with modules in a single file only,
113
+ where both contain different brands to be filtered out. Doesn't work with two of the same
111
114
*/
112
- {
113
- test : / \. v u e $ / ,
114
- use : createLoader ( function ( source , map ) {
115
- const brandStyleRemoval = new RegExp ( `(<style)(.*)(brand=("|')?${ otherBrands [ 0 ] } ("|')?)(.*?)>(.|\n)*?(<\/style>)` , 'gmi' ) ;
116
- const sourceUnbranded = source ?. replace ( brandStyleRemoval , '' ) ;
117
- return sourceUnbranded ?? source
118
- } ) ,
119
- } ,
115
+ // {
116
+ // test: /\.vue$/,
117
+ // use: createLoader(function(source, map) {
118
+ // const brandStyleRemoval = new RegExp(`(<style)(.*)(brand=("|')?${otherBrands[0]}("|')?)(.*?)>(.|\n)*?(<\/style>)`, 'gmi');
119
+ // const sourceUnbranded = source?.replace(brandStyleRemoval, '');
120
+ // return sourceUnbranded ?? source
121
+ // }),
122
+ // },
120
123
{
121
124
test : / \. j s $ / ,
122
125
use : {
You can’t perform that action at this time.
0 commit comments