2 Commits

Author SHA1 Message Date
23aa8efef2 2.0.1 2018-09-20 23:06:26 +02:00
d09b5773ca fix(core): update smartsass 2018-09-20 23:06:26 +02:00
3 changed files with 5 additions and 2 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartsass", "name": "@pushrocks/smartsass",
"version": "2.0.0", "version": "2.0.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartsass", "name": "@pushrocks/smartsass",
"version": "2.0.0", "version": "2.0.1",
"private": false, "private": false,
"description": "smart wrapper for sass", "description": "smart wrapper for sass",
"main": "dist/index.js", "main": "dist/index.js",

View File

@ -12,8 +12,10 @@ export interface ISmartsassConstructorOptions {
export class Smartsass { export class Smartsass {
includePaths = []; includePaths = [];
entryFilePath: string; entryFilePath: string;
data: string;
constructor(optionsArg: ISmartsassConstructorOptions) { constructor(optionsArg: ISmartsassConstructorOptions) {
this.entryFilePath = optionsArg.entryFilePath; this.entryFilePath = optionsArg.entryFilePath;
this.data = optionsArg.data;
if (optionsArg.includePaths) { if (optionsArg.includePaths) {
for (let includePath of optionsArg.includePaths) { for (let includePath of optionsArg.includePaths) {
this.includePaths.push(includePath); this.includePaths.push(includePath);
@ -37,6 +39,7 @@ export class Smartsass {
let done = plugins.smartpromise.defer<plugins.sass.Result>(); let done = plugins.smartpromise.defer<plugins.sass.Result>();
plugins.sass.render( plugins.sass.render(
{ {
data: this.data,
file: this.entryFilePath, file: this.entryFilePath,
includePaths: this.includePaths includePaths: this.includePaths
}, },