pugjs/pug-filters

filterOptions doesnt work for filters with include block

ivan-shaban opened this issue · 1 comments

If i define filter's options in filterOptions section it merged in pure filters, but doesnt into filters with include block. E.g.:

let compile = pug.renderFile(path.join(inputDir, `${file}.pug`), {
    pretty: true,
    plugins: [cssModules],
    filterOptions: {
        "scss": {
            modules: true,
            includePaths: ['../app/styles', '../app/styles/images'],
            outputStyle: 'compressed',
        },
    }
});

works fine:

        style
            :scss
                body {
                    background-color: #989898;
                }

doesn't work:

style
    include:scss ./styles-pug.scss

Fixed in e4a8200