Skip to content

Commit 130f597

Browse files
committed
fixing sass error in consuming applications
1 parent 0690edb commit 130f597

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
const mergeTrees = require('broccoli-merge-trees');
33
const Funnel = require('broccoli-funnel');
44
const path = require('path');
5+
const nodeSass = require('node-sass');
56

67
module.exports = {
78
name: require('./package').name,
@@ -31,8 +32,11 @@ module.exports = {
3132
importBootstrapFont: false,
3233
importBootstrapCSS: false
3334
};
35+
3436
target.options['ember-bootstrap'] = target.options['ember-bootstrap'] || defaultEmberBootStrapOptions;
3537

38+
target.options.sassOptions = target.options.sassOptions || { implementation: nodeSass };
39+
3640
this.checkPreprocessor();
3741

3842
this._super.included.apply(this, arguments);

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"ember-cli-htmlbars": "^3.0.0",
3636
"ember-cli-sass": "^8.0.1",
3737
"ember-svg-jar": "^1.2.2",
38-
"ember-truth-helpers": "^2.1.0"
38+
"ember-truth-helpers": "^2.1.0",
39+
"node-sass": "^4.9.4"
3940
},
4041
"devDependencies": {
4142
"@ember/optional-features": "^0.7.0",
@@ -76,7 +77,6 @@
7677
"eslint-plugin-ember": "^5.2.0",
7778
"eslint-plugin-node": "^7.0.1",
7879
"loader.js": "^4.7.0",
79-
"node-sass": "^4.9.4",
8080
"normalize.css": "^8.0.0",
8181
"np": "*",
8282
"qunit-dom": "^0.8.0",

0 commit comments

Comments
 (0)