Skip to content

Commit

Permalink
add data so it is possible to include globals scss variables (#1035)
Browse files Browse the repository at this point in the history
  • Loading branch information
steffenmllr authored and devongovett committed Mar 23, 2018
1 parent ce6f696 commit 86045d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/assets/SASSAsset.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const CSSAsset = require('./CSSAsset');
const localRequire = require('../utils/localRequire');
const promisify = require('../utils/promisify');
const path = require('path');
const os = require('os');

class SASSAsset extends CSSAsset {
async parse(code) {
Expand All @@ -16,7 +17,7 @@ class SASSAsset extends CSSAsset {
opts.includePaths = (opts.includePaths || []).concat(
path.dirname(this.name)
);
opts.data = code;
opts.data = opts.data ? (opts.data + os.EOL + code) : code;
opts.indentedSyntax =
typeof opts.indentedSyntax === 'boolean'
? opts.indentedSyntax
Expand Down

0 comments on commit 86045d3

Please sign in to comment.