Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
23aa8efef2 | |||
d09b5773ca |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartsass",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartsass",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"private": false,
|
||||
"description": "smart wrapper for sass",
|
||||
"main": "dist/index.js",
|
||||
|
@ -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.Result>();
|
||||
plugins.sass.render(
|
||||
{
|
||||
data: this.data,
|
||||
file: this.entryFilePath,
|
||||
includePaths: this.includePaths
|
||||
},
|
||||
|
Reference in New Issue
Block a user