ember-cli-sass icon indicating copy to clipboard operation
ember-cli-sass copied to clipboard

[bug] ensure that SassCompiler is not run on files that are not (.scss|.sass|.css)

Open gabrielcsapo opened this issue 5 years ago • 8 comments

Motivation

#214 #178

The sass compiler has an unintended overhead when running in projects as it rebuilds when it is not necessary.

What happens after this change?

When changing a .scss file

Screen Shot 2020-05-25 at 7 07 14 PM > When changing a non `.scss` file Screen Shot 2020-05-25 at 7 07 17 PM

screenshot produced using broccoli-inspector

This results in a net savings for rebuilds of 50%!

Change itself

  • Why was broccoli-sass-source-maps copied into the project? I was hoping to have a discussion around this change before opening up two PRs. In the context of ember it might make sense to care about the buildStart time where as in the more generic broccoli-sass-source-maps it would be better to not have a filter between file changes. Sass is different thenjs and hbs where the build output is the result of running sass on the top level input file. hbs and js can be altered and combined at the end of the build.

gabrielcsapo avatar May 26 '20 02:05 gabrielcsapo

@simonexmachina would you be able to review this?

gabrielcsapo avatar May 26 '20 15:05 gabrielcsapo

@rwjblue updated based on your suggestions and also broke up the node upgrade as a separate PR. https://github.com/adopted-ember-addons/ember-cli-sass/pull/216

gabrielcsapo avatar May 26 '20 18:05 gabrielcsapo

@rwjblue this seems to be plaguing many others would you be able to see if we can merge this?

gabrielcsapo avatar Jun 03 '20 05:06 gabrielcsapo

This is just not cared about anymore? Is there a version I can revert to for this?

robclancy avatar Jul 21 '20 05:07 robclancy

Any chance this will get merged soon? This PR seems to have worked, SassCompiler is gone from e-cli rebuild slowest nodes list.

I'm still having a pretty slow entry for Concat: Vendor Styles/assets/vendor.css (1) | 838ms when rebuilding .js/.ts.

Is this also caused by this addon, or does it come from somewhere else?

vlascik avatar Mar 02 '21 11:03 vlascik

Looks like there is still some feedback that needs to be addressed before this can be merged.

knownasilya avatar Jun 29 '21 16:06 knownasilya