-
Notifications
You must be signed in to change notification settings - Fork 12k
css preprocessor plugins #388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
options = options || {}; | ||
Plugin.call(this, inputNodes, { | ||
cacheInclude: [/(.*?).scss$/, /(.*?).sass$/] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be \.scss
and \.sass
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And the ?
isn't necessary afaict.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jkuri, I didn't know about ng install
😃
I try to follow along, but you are moving too fast 👍
bbd9a14
to
3fa1f6f
Compare
|
||
return new CompassPlugin([compassSrcTree]); | ||
} else { | ||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not necessary.
66545d6
to
19a1762
Compare
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
|
||
compile(fileName, inputPath, outputPath) { | ||
let sassOptions = { | ||
file: path.join(fileName), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path.join
--> path.normalize
I'm not familiar with compass tbh, but I wonder what happens if both |
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. |
Thanks Hans. |
But if |
@gkalpak I am fixing that. |
21ce9c9
to
3501010
Compare
This 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.