From d09b5773ca0a9b73f135f846987420780b5bf05d Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Thu, 20 Sep 2018 23:06:26 +0200 Subject: [PATCH] fix(core): update smartsass --- ts/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ts/index.ts b/ts/index.ts index 70bcf24..533614d 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -12,8 +12,10 @@ export interface ISmartsassConstructorOptions { export class Smartsass { includePaths = []; entryFilePath: string; + data: string; constructor(optionsArg: ISmartsassConstructorOptions) { this.entryFilePath = optionsArg.entryFilePath; + this.data = optionsArg.data; if (optionsArg.includePaths) { for (let includePath of optionsArg.includePaths) { this.includePaths.push(includePath); @@ -37,6 +39,7 @@ export class Smartsass { let done = plugins.smartpromise.defer(); plugins.sass.render( { + data: this.data, file: this.entryFilePath, includePaths: this.includePaths },