jonkemp / jonkemp/gulp-inline-css
codeBlocks has no effect
- Dominant language
- JavaScript
- Stars
- 271
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
I'm having troubles parsing templates which have expressions like this `{% if balance < 5 %}`.
And the parsing is failing pointing to `<`.
I've tried to change the config to this
```
function inliner(css) {
var css = fs.readFileSync(css).toString();
var mqCss = siphon(css);
var pipe = lazypipe()
.pipe($.inlineCss, {
applyStyleTags: false,
removeStyleTags: true,
preserveMediaQueries: true,
removeLinkTags: false,
codeBlocks: {
HBS: { start: '{{', end: '}}' },
volt: { start: '{%', end: '%}' },
mustache: { start: '${{', end: '}}$' }
}
})
.pipe($.replace, '', `${mqCss}`)
.pipe(
$.replace,
'',
''
)
.pipe($.htmlmin, {
collapseWhitespace: true,
minifyCSS: true
});
return pipe();
}
```
But this doesn't seem to help.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.