Skip to content

Commit 9075819

Browse files
authored
Add instructions for including 3rd party packages in bundle (#148)
See discussion in issue #92 #92
1 parent 7638f92 commit 9075819

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ Watch out - if you precompile your files locally, those will be served over the
6060
rails assets:clobber
6161
```
6262

63+
### How do I include 3rd party stylesheets from `node_modules` in my bundle?
64+
65+
Use an `@import` statement and path to a specific stylesheet, omitting the `node_modules/` segment and the file's extension. For example:
66+
67+
```scss
68+
/* Desired file is at at node_modules/select2/dist/css/select2.css */
69+
@import "select2/dist/css/select2";
70+
```
71+
6372
## License
6473

6574
CSS Bundling for Rails is released under the [MIT License](https://opensource.org/licenses/MIT).

0 commit comments

Comments
 (0)