Closed garbinmarcelo closed 4 years ago
Hi, ref. #116 What I did was:
scripts/simple-line-icons.less
scripts/less2sass.js
Less2Sass.prototype.convertVariables
.replace(/;\/\/default/g, ' !default;')
Maybe someone can improve this code, but at the moment it works and supports the subscription of SCSS variables coming from an external file. Example:
Without the !default in SCSS file the variable ends up not being able to be previously replaced. More about this in the documentation https://sass-lang.com/documentation/variables#default-values
!default
closed in favor of https://github.com/thesabbir/simple-line-icons/pull/117
Hi, ref. #116 What I did was:
scripts/simple-line-icons.less
file;scripts/less2sass.js
in theLess2Sass.prototype.convertVariables
function I added.replace(/;\/\/default/g, ' !default;')
;Maybe someone can improve this code, but at the moment it works and supports the subscription of SCSS variables coming from an external file. Example:
Without the
!default
in SCSS file the variable ends up not being able to be previously replaced. More about this in the documentation https://sass-lang.com/documentation/variables#default-values