willyelm / pug-html-loader

Pug HTML loader for webpack

Home Page:https://github.com/willyelm/pug-html-loader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use css-loader(local scoped) with pug-html-loader?

wiloke1 opened this issue · comments

how to use local scoped with pug-html-loader?

scss:

:local {
    .className {
        background: red;
        color: yellow;
    }
    .subClass {
        background: blue;
    }
}

bundle.js

...
/***/ }),
/* 21 */
/***/ (function(module, exports) {

// removed by extract-text-webpack-plugin
module.exports = {"className":"style__className--5m3Hg","subClass":"style__subClass--Enq-v"};

/***/ }),
...