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

Add style and sass keys to package.json #29

Open
rintisch opened this issue Apr 19, 2022 · 0 comments
Open

Add style and sass keys to package.json #29

rintisch opened this issue Apr 19, 2022 · 0 comments

Comments

@rintisch
Copy link

If package.json would contain

"style": "gorko.scss"
"sass": "gorko.scss"

then they could (depending on the build setup) be imported with @import '~gorko'; instead of @import 'node_modules/gorko/gorko.scss'; (or @import '~gorko/gorko.scss';)

Example where that is shown: https://symfonycasts.com/screencast/webpack-encore/css (relevant part starts at 2:37 min)
Also see https://stackoverflow.com/questions/32037150/style-field-in-package-json

Is there anything against it?

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

1 participant