Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Libraries > Support tilde imports for SCSS files #415

Merged
merged 2 commits into from
Jun 20, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cli/utils/stage-library-ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ const fs = require('fs-extra');
const glob = require('glob');
const path = require('path');
const sass = require('node-sass');
const tildeImporter = require('node-sass-tilde-importer');

const skyPagesConfigUtil = require('../../config/sky-pages/sky-pages.config');
const spaPathTempSrc = skyPagesConfigUtil.spaPathTempSrc();

Expand Down Expand Up @@ -88,6 +90,7 @@ function getHtmlContents(filePath) {
function compileSass(filePath) {
return sass.renderSync({
file: filePath,
importer: tildeImporter,
outputStyle: 'compressed'
}).css;
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"lodash.mergewith": "4.6.0",
"ngc-webpack": "3.0.0",
"node-sass": "4.5.3",
"node-sass-tilde-importer": "1.0.2",
"open": "0.0.5",
"portfinder": "1.0.13",
"protractor": "5.1.2",
Expand Down