We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce6f696 commit 86045d3Copy full SHA for 86045d3
1 file changed
src/assets/SASSAsset.js
@@ -2,6 +2,7 @@ const CSSAsset = require('./CSSAsset');
2
const localRequire = require('../utils/localRequire');
3
const promisify = require('../utils/promisify');
4
const path = require('path');
5
+const os = require('os');
6
7
class SASSAsset extends CSSAsset {
8
async parse(code) {
@@ -16,7 +17,7 @@ class SASSAsset extends CSSAsset {
16
17
opts.includePaths = (opts.includePaths || []).concat(
18
path.dirname(this.name)
19
);
- opts.data = code;
20
+ opts.data = opts.data ? (opts.data + os.EOL + code) : code;
21
opts.indentedSyntax =
22
typeof opts.indentedSyntax === 'boolean'
23
? opts.indentedSyntax
0 commit comments