1.0.4 • Published 2 years ago
styl2scss v1.0.4
Styl2scss
Convert stylus to scss
Installation
npm i -g styl2scssUsage
s2sConfiguration
Create the styl2scss.config.js file above in the project with the following options:
ignore - list of ignored globs (default - ['node_modules/**']);
convertStyles - enable styles conversion (default - true);
removeOldStyles - remove old styles (default - false);
updateJSX - update style imports in jsx/tsx files (default - false);
Known issues
If the original styles were wrong, the result will also be wrong. For example, if there were block brackets in the source file - as a result, there may be one more bracket in this place.