Uh oh!
There was an error while loading. Please reload this page.
css preprocessor plugins - #388
Conversation
| options = options || {}; | ||
| Plugin.call(this, inputNodes, { | ||
| cacheInclude: [/(.*?).scss$/, /(.*?).sass$/] |
jkuri
commented
Apr 3, 2016
Updated, thanks for checking @gkalpak. |
| it('Installs sass support successfully via `ng install sass`', function() { | ||
| this.timeout(420000); | ||
| sh.exec('npm install node-sass', { silent: true }); |
There was a problem hiding this comment.
I'm not familiar with the project's conventions, but should this be ng install sass ?
(If not, the test description is kind of inaccurate.)
There was a problem hiding this comment.
Hi @gkalpak. I need to update the description, you are right. We abandoned the ng install command for now.
There was a problem hiding this comment.
@jkuri, I didn't know about ng install 😃
I try to follow along, but you are moving too fast 👍
bbd9a14 to
3fa1f6fCompare| return new CompassPlugin([compassSrcTree]); | ||
| } else { | ||
| return; |
66545d6 to
19a1762Compare| sass = require('sass'); | ||
| compass = require('compass'); | ||
| } catch (e) { | ||
| sass = require(`${process.env.PROJECT_ROOT}/node_modules/node-sass`); |
There was a problem hiding this comment.
If ${process.env.PROJECT_ROOT}/node_modules/node-sass exists, wouldn't require('sass') have picked it up ?
There was a problem hiding this comment.
You cannot require peer dependencies without having a peerDependency key in package.json. We could put it there as optional. We need to experiment on this.
jkuri
commented
Apr 4, 2016
| compile(fileName, inputPath, outputPath) { | ||
| let sassOptions = { | ||
| file: path.join(fileName), |
gkalpak
commented
Apr 4, 2016
I'm not familiar with compass tbh, but I wonder what happens if both |
hansl
commented
Apr 5, 2016
If you have both installed, one of them will take precendence. If you have a custom workflow you should have a custom broccoli configuration anyway. @jkuri LGTM. |
jkuri
commented
Apr 5, 2016
Thanks Hans. |
gkalpak
commented
Apr 5, 2016
But if |
jkuri
commented
Apr 5, 2016
@gkalpak I am fixing that. |
21ce9c9 to
3501010CompareThis issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
No description provided.