-
Notifications
You must be signed in to change notification settings - Fork 237
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
Replace node-sass with Dart Sass #1269
Conversation
not sure about showing warnings for Frontend when our users can't do anything about them, and the custom Logger adds a lot of code as opposed to using the documented Dart Sass silent option |
9e49433
to
02c43f0
Compare
02c43f0
to
58a932e
Compare
58a932e
to
2b9d8a3
Compare
__tests__/spec/sanity-checks.js
Outdated
console.error('Found an error') | ||
console.error(err) |
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.
We can probably get rid of these lines right?
When I make the test fail by breaking the CSS I get a nicely formatted stack trace in the error output.
Is it worth adding a comment to the tests saying 'we don't know why this works, but it's the only thing we could find that did'? |
@lfdebrux Re: comment I'd rather leave it without that comment, at some point we'll either use the |
153af35
to
6318c7b
Compare
gulp/sass.js
Outdated
@@ -23,7 +23,7 @@ gulp.task('sass-extensions', function (done) { | |||
|
|||
gulp.task('sass', function () { | |||
return gulp.src(config.paths.assets + '/sass/*.scss', { sourcemaps: true }) | |||
.pipe(sass({ outputStyle: 'expanded' }).on('error', function (error) { | |||
.pipe(sass.sync({ outputStyle: 'expanded', logger: sass.compiler.Logger.silent }, false).on('error', function (error) { |
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.
just checking what the false
here is for? The other calls on this page don't have it
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.
6318c7b
to
4d83f6d
Compare
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.
Great work everyone!
Fixes #1000
This replaces node-sass with Dart Sass. Node-sass is deprecated and does not officially support M1 Macs. Dart sass works on M1 Macs. Other than fixing the Prototype Kit on M1 Macs, there should be no change for users.
This PR also replaces division symbol
/
in Prototype Kit sass files withmath.div
as/
is deprecated in Dart Sass.