We started out with sass files with something like this (obvious brevity is obvious):
// colors.scss
$green: #37ab2e;
$white: #FFFFFF;
// skin.scss
.bg_green { color: $green; }
.fg_white { color: $white; }
const { assert } = require('chai'); | |
function isError(e) { | |
if (typeof e === 'string') { | |
return Promise.reject(new Error(e)); | |
} | |
return Promise.resolve(e); | |
} | |
We started out with sass files with something like this (obvious brevity is obvious):
// colors.scss
$green: #37ab2e;
$white: #FFFFFF;
// skin.scss
.bg_green { color: $green; }
.fg_white { color: $white; }