1
Fork 0

fix: use sass instead of node-sass

This commit is contained in:
Bauke 2019-09-24 13:42:47 +02:00
parent b51073ad6b
commit 22bac128ba
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
3 changed files with 121 additions and 729 deletions

View File

@ -24,8 +24,9 @@ let cssFiles = readdirSync(join(__dirname, 'src'));
// Generate all the SCSS using the CLI
console.log(logMeta + 'generating SASS/SCSS -> CSS');
const outputStyle = process.env.STYLE_ENV === 'dev' ? 'expanded' : 'compressed';
mkdirpSync('temp/');
for (const cssFile of cssFiles) {
execSync(`npx node-sass src/${cssFile}/ --output-style ${outputStyle} -o ${tempPath}`);
execSync(`yarn sass --no-source-map --style ${outputStyle} src/${cssFile}/${cssFile}.s* ${tempPath}/${cssFile}.css`);
console.log(`${logMeta}${cssFile}`);
}

View File

@ -17,8 +17,8 @@
"dependencies": {},
"devDependencies": {
"fs-extra": "^7.0.1",
"node-sass": "^4.11.0",
"nodemon": "^1.18.10",
"sass": "^1.22.12",
"stylelint": "^9.10.1",
"stylelint-config-recommended": "^2.1.0",
"stylelint-scss": "^3.5.4",
@ -27,7 +27,10 @@
},
"xo": {
"rules": {
"object-curly-spacing": ["error", "always"]
"object-curly-spacing": [
"error",
"always"
]
},
"space": true
}

840
yarn.lock

File diff suppressed because it is too large Load Diff