[PatternFly] Trouble using PatternFly in Rails
Christoph Haas
email at christoph-haas.de
Wed Dec 19 17:31:01 UTC 2018
Dear list,
I would like to use PatternFly in a new Rails (5.2) project. The README
of https://github.com/patternfly/patternfly reads:
*"Patternfly now supports Sass natively!* Sass is included in the
|dist/sass| directory. Just add |node_modules| to your build tool's Sass
include paths then |@import 'patternfly/dist/sass/patternfly';| in your
Sass to get started!"
So far so good. My "node_modules" path is added to the assets lookup
path. I ran "npm install patternfly --save" and I renamed
app/assets/stylesheets/application.css to …/application.scss and added:
@import 'patternfly/dist/sass/patternfly';
But I end up with this error message:
File to import not found or unreadable: bootstrap/variables.
I am not using any fancy magic like Webpack here – just the built-in
sprockets asset management. I just want to load the CSS and JS the right
way. Has anyone managed to do that? Any hint is very appreciated because
I have been at it for hours.
Kind regards
Christoph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/patternfly/attachments/20181219/f2140c83/attachment.htm>
More information about the PatternFly
mailing list