Skip to content

Commit

Permalink
Merge branch 'release/3.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
maoberlehner committed Dec 21, 2016
2 parents 52eb789 + eff8a31 commit a0cd08b
Show file tree
Hide file tree
Showing 5 changed files with 132 additions and 174 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ var options = {
'main.style',
'main.css',
'main'
]
],
// You can set the special character for indicating a module resolution.
prefix: '~'
};

sass.render({
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"sass",
"selector-importer"
],
"version": "3.0.0",
"version": "3.1.0",
"author": "Markus Oberlehner",
"homepage": "https://github.com/maoberlehner/node-sass-magic-importer",
"license": "MIT",
Expand All @@ -23,7 +23,7 @@
},
"dependencies": {
"node-sass-glob-importer": "^3.0.0",
"node-sass-package-importer": "^3.0.0",
"node-sass-package-importer": "^3.0.1",
"node-sass-selector-importer": "^4.0.0",
"unique-concat": "^0.2.2"
},
Expand Down
1 change: 1 addition & 0 deletions test/files/bootstrap-alt-prefix.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import '+bootstrap';
13 changes: 13 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@ describe(`magicImporter`, () => {
});
});

it(`should compile bootstrap imported with alternative prefix`, (done) => {
sass.render({
file: `test/files/bootstrap-alt-prefix.scss`,
importer: magicImporter({ prefix: `+` })
}, (error) => {
if (!error) {
done();
} else {
console.log(error);
}
});
});

it(`should compile foundation`, (done) => {
sass.render({
file: `test/files/foundation.scss`,
Expand Down
Loading

0 comments on commit a0cd08b

Please sign in to comment.