nativescript-dev-sass
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -13,4 +13,7 @@ exports.convert = convert; | ||
var sassFilesPath = path.join(projectDir, 'app/**/*.scss'); | ||
var sassImportPath = path.join(projectDir, 'app/'); | ||
//console.log("SASS Import Path", sassImportPath); | ||
var sassImportPaths = [ | ||
path.join(projectDir, 'app/'), | ||
path.join(projectDir, 'node_modules/') | ||
]; | ||
//console.log("SASS Import Path", sassImportPaths); | ||
@@ -30,3 +33,3 @@ var sassFiles = glob.sync(sassFilesPath).filter(function(filePath){ | ||
var loopSassFilesAsync = function(sassFiles){ | ||
parseSass(sassFiles[i], sassImportPath, function(e){ | ||
parseSass(sassFiles[i], sassImportPaths, function(e){ | ||
if(e !== undefined){ | ||
@@ -53,3 +56,3 @@ //Error in the LESS parser; Reject promise | ||
function parseSass(filePath, importPath, callback){ | ||
function parseSass(filePath, importPaths, callback){ | ||
var sassFileContent = fs.readFileSync(filePath, { encoding: 'utf8'}); | ||
@@ -60,3 +63,3 @@ var cssFilePath = filePath.replace('.scss', '.css'); | ||
data: sassFileContent, | ||
includePaths: [importPath], | ||
includePaths: importPaths, | ||
outFile: cssFilePath, | ||
@@ -63,0 +66,0 @@ outputStyle: 'compressed' |
{ | ||
"name": "nativescript-dev-sass", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "SASS CSS pre-processor for NativeScript projects.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -5,2 +5,4 @@ SASS CSS pre-processor for NativeScript projects | ||
[![npm version](https://badge.fury.io/js/nativescript-dev-sass.svg)](https://badge.fury.io/js/nativescript-dev-sass) | ||
---------- | ||
@@ -7,0 +9,0 @@ This plugin uses the [node-sass compiler](https://www.npmjs.com/package/node-sass) to transpile SCSS files to CSS files in [NativeScript](https://www.nativescript.org/) projects. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5572
72
31