-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
How to improve build performance #276
Comments
It might be because you have a lot of scss files in your node_modules which get compiled unnecessary. Could you try if it's better with meteor 1.7 instead of 1.7.0.1? If so, that's because there was an optimization for this in 1.7 that had to be reverted and will be re-introduced in 1.7.1. Other than that I don't think there's much we can do since we already use meteor's caching system and basically just pass the files to node-sass which uses libsass and is already the fastest way. |
Thanks! 1.7 takes it down to 26.5s.
a lot of scss files in your node_modules which get compiled unnecessary
Do all .scss files inside node_modules/ get compiled, or only those I
import?
…On Wed, Jul 11, 2018 at 5:14 PM Seba Kerckhof ***@***.***> wrote:
It might be because you have a lot of scss files in your node_modules
which get compiled unnecessary. Could you try if it's better with meteor
1.7 instead of 1.7.0.1? If so, that's because there was an optimization for
this in 1.7 that had to be reverted and will be re-introduced in 1.7.1.
Other than that I don't think there's much we can do since we already use
meteor's caching system and basically just pass the files to node-sass
which uses libsass and is already the fastest way.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#276 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAPVmBA3YIb_Bz6SnuAjxxVnsBJ5XrSDks5uFmqXgaJpZM4VL0LZ>
.
|
in 1.7.0.1 it's all of them. Meteor 1.7.1 will have an optimization to only compile the once you import. See: meteor/meteor#9983 |
Meteor 1.7 also only uses the once you import, but using another technique which fails in some scenarios. Hence why 1.7.0.1 was introduced to revert this optimization. |
what about the new api mentioned here? |
According to
METEOR_PROFILE=1 meteor run
, my app takes 30 seconds to rebuild with this package and 22 seconds without it. Is there any way the performance can be improved? Either in the package code, or by my use of it? Right now I'm doing individual-component JS imports, egimport './Post.scss'
inside/imports/Post.js
. Would it be better if I moved all my SCSS into one file, or if I switched from JS imports to SCSS imports? (@import '{}/imports/Post.scss'
insideclient/styles.scss
)?meteor
version:1.7.0.1
fourseven:scss
version:4.9.0
The text was updated successfully, but these errors were encountered: