-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to @import from webjars #15
Comments
I think something like this could work with (comp
; Add files from Bootstrap webjar to fileset
(sift :add-jar {'org.webjars.bower/bootstrap #"META-INF/resources/webjars"})
; Move files to sane path:
; e.g. META-INF/resources/webjars/bootstrap/4.0.0-alpha.2/scss/bootstrap.scss => bootstrap/scss/bootstrap.scss
(sift :move {#"^META-INF/resources/webjars/bootstrap/[^\/]*/" "bootstrap/"})
(sass)) @import 'bootstrap/scss/bootstrap`; |
This seems like a step into the right direction, however doesn't work.
Here's the task: (deftask mysass []
(comp
; Add files from Bootstrap webjar to fileset
(sift :add-jar {'org.webjars/bootstrap #"META-INF/resources/webjars"})
; Move files to sane path:
; e.g. META-INF/resources/webjars/bootstrap/4.0.0-alpha.2/scss/bootstrap.scss => bootstrap/scss/bootstrap.scss
(sift :move {#"^META-INF/resources/webjars/bootstrap/[^\/]*/" "bootstrap/"})
(sass :output-dir "stylesheets")
(target :dir #{"target"}))) Here's the output:
|
You can try https://github.com/Deraen/sass4clj It has built-in support for importing files from classpath and webjars. |
For cases like this, I definitely recommend https://github.com/Deraen/sass4clj |
I wonder if there is any possibility to do
having
[org.webjars/bootstrap "3.3.6"]
in dependencies.If that's not possible, what's the preferred way to pull 3rd party modules?
The text was updated successfully, but these errors were encountered: