Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Use third party CSS through NPM modules #294

Open
davegomez opened this issue Jun 27, 2017 · 1 comment
Open

Use third party CSS through NPM modules #294

davegomez opened this issue Jun 27, 2017 · 1 comment

Comments

@davegomez
Copy link

Is it possible to include third party CSS code through NPM modules and export it in the final CSS from the toolkit?

Or is any other automatic dependency resolution mechanism that we can use for these third party frameworks and projects?

@myles
Copy link

myles commented Jun 30, 2017

In the toolkit.scss file you can import CSS files node_modules like this:

// ./node_modules/bootstrap/dist/css/bootstrap.css
@import 'bootstrap/dist/css/bootsrap';

This will also work for SCSS files:

// ./node_modules/bourbon/app/assets/stylesheets/_bourbon.scss
@import 'bourbon/app/assets/stylesheets/bourbon';

// ./node_modules/bourbon-neat/app/assets/stylesheets/_neat.scss
@import 'bourbon-neat/app/assets/stylesheets/neat';

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants