Skip to content
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

Include scss files in npm module #32

Open
Zardoz89 opened this issue Sep 18, 2020 · 2 comments
Open

Include scss files in npm module #32

Zardoz89 opened this issue Sep 18, 2020 · 2 comments
Milestone

Comments

@Zardoz89
Copy link

Please implement harvesthq#2807

It's very important for who needs to customize chosen, using SCSS on a complex project.

@JJJ
Copy link
Owner

JJJ commented Sep 18, 2020

Hey @Zardoz89! I'm totally open to this suggestion.

How would you like to see it implemented? Let's get it done!

@JJJ JJJ added this to the 3.0.0 milestone Sep 18, 2020
@Zardoz89
Copy link
Author

Zardoz89 commented Sep 18, 2020

Well, bootstrap v4 generates his NPM package with a structure like this :

package.json
README.md
LICENSE
dist/
dist/css/...
dist/js/...
js/...
scss/...

Translates to chosen, it could be :

package.json
README.md
LICENSE.md
dist/
dist/css/
dist/css/choosen.css
dist/css/choosen.css.map
dist/css/choosen.min.css
dist/css/choosen.min.css.map
dist/js/
dist/js/choosen.jquery.js
dist/js/choosen.jquery.js.map
dist/js/choosen.jquery.min.js
dist/js/choosen.jquery.min.js.map
dist/js/choosen.proto.js
dist/js/choosen.proto.js.map
dist/js/choosen.proto.min.js
dist/js/choosen.proto.min.js.map
coffe/
coffe/chosen.jquery.coffee
coffe/chosen.proto.coffee
coffe/lib/
coffe/lib/select-parser.coffee
coffe/lib/abstract-chosen.coffee
scss/
scss/chosen.scss

On this way, you include all necessary files to use directly on a browser, or use it as dependency with a bundler or other complex building setup with grunt, gulp, etc.

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

No branches or pull requests

2 participants