-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Importing dist/scss/selectize.bootstrap4.scss requires devDependency on bootstrap4 to be installed #1614
Comments
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Afaik this issue didn't go anywhere |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Afaik this issue didn't go anywhere |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days |
This is an intentional design as building the scss from src is meant to make use of as much of the native bootstrap code as possible. In a downstream project, if you need to use the files from source, you will also need to reference a DevDependency on the bootstrap version you are using. Referencing the compiled version from dist does not have this dependency. All that being said, I totally understand the frustration, it's probably worth a refactor on our end to pull the bs library locally during the build to avoid this, and I will try to make that a priority for our next patch version |
Thanks a lot! |
I did:
(or gave a link to a demo on the Selectize docs)
like below
I don't know how to correctly import scss file from dist.
Steps to reproduce:
yarn add selectize.js
@import 'selectize/dist/scss/selectize.bootstrap4';
bin/webpack-dev-server
Expected result:
Everything compiles successfully.
Actual result:
troubling line is
In
selectize/dist/scss/selectize.bootstrap4.scss
there's importwhich resolves to
which as I understand is supposed to be installed via
in
package.json
ofselectize.js
. My understanding is that it is impossible to selectively install devDependency of a package.How do I import
bootstrap4.scss
file?The text was updated successfully, but these errors were encountered: