Skip to content

Instantly share code, notes, and snippets.

View alberto-chiesa's full-sized avatar

Alberto Chiesa alberto-chiesa

  • SEA Vision
  • Pavia, Italy
View GitHub Profile
@alberto-chiesa
alberto-chiesa / ExportScss.js
Created February 8, 2019 15:15
Export scss file with variables into TypeScript
var scssToJson = require('scss-to-json');
var path = require('path');
var fs = require('fs');
var BasePath = 'projects/myProj/src';
var scssInputPath = path.resolve(__dirname, svCoreBasePath, 'styles', '_variables.scss');
var tsOutputPath = path.resolve(__dirname, svCoreBasePath, 'app', 'css-variables.ts');
var variables = scssToJson(scssInputPath);