svnm / bootstrap-css

A css module compatible version of bootstrap
46 stars 11 forks source link

How to make this work with composes #2

Closed jole78 closed 7 years ago

jole78 commented 8 years ago

I have a style.css with the following:

.page-header {
    /*composes: page-header from global;*/
    composes: page-header from 'bootstrap-css/type';
    margin: 0 0 20px;
}

That produces this error (webpack): Module not found: Error: Cannot resolve module 'bootstrap-css/type'

If I instead try this: composes: page-header from 'bootstrap-css'; I get the following error: Module build failed: CssSyntaxError: node_modules/bootstrap-css/index.js:3:1: Unknown word

This however: composes: page-header from global; does does get me the desired outcome since I have bootstrap as a separate css bundled.

Ideas/Comments?

terencechow commented 7 years ago

In my project using less I have no problem with composes: btn from bootstrap/lib/buttons.css

svnm commented 7 years ago

Can you provide a repo showing the issue, otherwise I will be taking @terencechow's advice that all is working as it is in the examples and will have to close this.