-
Notifications
You must be signed in to change notification settings - Fork 6.8k
build: speed-up stylesheet building #12426
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
* Switches back from `dart-sass` to `node-sass` due to a pretty huge slow-down we noticed (can be revisited) * No longer copies all SCSS files to the temporary `package` output just in favor of the demo-app (slows down unnecessarily). This now allows us to live-reload theme changes within a second. * No longer rebuilds all package SCSS files twice for the ES5 output (rel: angular#7403)
I also did some testing where I compared |
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.
LGTM, but leaving to @jelbourn for final approval.
// These imports lack of type definitions. | ||
const gulpSass = require('gulp-sass'); | ||
const gulpIf = require('gulp-if'); | ||
const gulpCleanCss = require('gulp-clean-css'); |
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.
Looks like there are types for gulp-sass
and gulp-if
.
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.
There definitely is, but for such small things we didn't even consider installing the types
(no real benefit; just blows the package)
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.
That's not what the comment says though.
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.
Well, since we didn't install the types, the imports basically lack of type definitions. Not the packages.
I see that the comment could be ambiguous, and I can change them in a follow-up that also considers all other similar comments like that. The comment was not really part of the PR.
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.
LGTM for now, though we will have to change before too long (it's changing inside Google to the dart compiler). Hopefully, though, we'll have switched to Bazel by that time.
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. |
dart-sass
tonode-sass
due to a pretty huge slow-down we noticed (can be revisited)package
output just in favor of the demo-app (slows down unnecessarily). This now allows us to live-reload theme changes within a second.