Andy-set-studio / gorko

A tiny Sass token class generator.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add `style` and `sass` keys to `package.json`

rintisch opened this issue · comments

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?