Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nativescript-dev-sass

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-dev-sass - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

13

lib/converter.js

@@ -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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc