The changes to build.js look significant, but the only real change I made with it was changing it to a function that's exported rather than it just being a script file that runs.
By default yarn build:scss still outputs the same content with :root as the selector, but now you can also pass the --selector flag (or just -s for short) and specify any selector you want, i.e. yarn build:scss -s .foo will replace the :root selector with .foo in the generated scss files.
Closes #9
The changes to
build.js
look significant, but the only real change I made with it was changing it to a function that's exported rather than it just being a script file that runs.By default
yarn build:scss
still outputs the same content with:root
as the selector, but now you can also pass the--selector
flag (or just-s
for short) and specify any selector you want, i.e.yarn build:scss -s .foo
will replace the:root
selector with.foo
in the generated scss files.