fix(core): update smartsass
This commit is contained in:
parent
b1165827a1
commit
d09b5773ca
@ -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
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user