Skip to content

Commit

Permalink
Fix indented syntax type for single file vue components (#1211) in as…
Browse files Browse the repository at this point in the history
…sets/SASSAsset.js (#1375)
  • Loading branch information
Matteo Maronati authored and devongovett committed May 20, 2018
1 parent 15eb885 commit f743317
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/assets/SASSAsset.js
Expand Up @@ -28,10 +28,8 @@ class SASSAsset extends Asset {
path.dirname(this.name)
);
opts.data = opts.data ? opts.data + os.EOL + code : code;
opts.indentedSyntax =
typeof opts.indentedSyntax === 'boolean'
? opts.indentedSyntax
: path.extname(this.name).toLowerCase() === '.sass';
let type = this.options.rendition ? this.options.rendition.type : path.extname(this.name).toLowerCase().replace('.','');
opts.indentedSyntax = typeof opts.indentedSyntax === 'boolean' ? opts.indentedSyntax : type === 'sass';

opts.functions = Object.assign({}, opts.functions, {
url: node => {
Expand Down

0 comments on commit f743317

Please sign in to comment.