File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- const path = require ( 'path' ) ;
3
+ const smh = require ( './style_modifier_hunter' ) ;
4
+ const style_modifier_hunter = new smh ( ) ;
4
5
5
6
const getPartial = require ( './get' ) ;
6
7
const logger = require ( './log' ) ;
@@ -293,6 +294,11 @@ const parameter_hunter = function () {
293
294
}
294
295
}
295
296
297
+ //if partial has style modifier data, replace the styleModifier value
298
+ if ( pattern . stylePartials && pattern . stylePartials . length > 0 ) {
299
+ style_modifier_hunter . consume_style_modifier ( partialPattern , pMatch , patternlab ) ;
300
+ }
301
+
296
302
// set pattern.extendedTemplate pMatch with replacedPartial
297
303
pattern . extendedTemplate = pattern . extendedTemplate . replace ( pMatch , partialPattern . extendedTemplate ) ;
298
304
You can’t perform that action at this time.
0 commit comments