Skip to content

Commit c6cb951

Browse files
Support tilde imports for SCSS files (blackbaud#415)
1 parent 7ade7c3 commit c6cb951

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cli/utils/stage-library-ts.js

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ const fs = require('fs-extra');
55
const glob = require('glob');
66
const path = require('path');
77
const sass = require('node-sass');
8+
const tildeImporter = require('node-sass-tilde-importer');
9+
810
const skyPagesConfigUtil = require('../../config/sky-pages/sky-pages.config');
911
const spaPathTempSrc = skyPagesConfigUtil.spaPathTempSrc();
1012

@@ -88,6 +90,7 @@ function getHtmlContents(filePath) {
8890
function compileSass(filePath) {
8991
return sass.renderSync({
9092
file: filePath,
93+
importer: tildeImporter,
9194
outputStyle: 'compressed'
9295
}).css;
9396
}

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
"lodash.mergewith": "4.6.0",
8282
"ngc-webpack": "3.0.0",
8383
"node-sass": "4.5.3",
84+
"node-sass-tilde-importer": "1.0.2",
8485
"open": "0.0.5",
8586
"portfinder": "1.0.13",
8687
"protractor": "5.1.2",

0 commit comments

Comments
 (0)