-
-
Notifications
You must be signed in to change notification settings - Fork 76
node-sass -> dart-sass #323
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
node-sass -> dart-sass #323
Conversation
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 need more documentation on migration. Other than that I'm happy to move this forward.
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 would definitely move forward with this but I would publish an alpha version first, so we can field test this with some real-world apps.
The issue with Meteor 2.8 compatibility was that when I published the package with a Meteor 3.x release, it wasn’t compatible with This makes sense given the structural changes in Meteor 3, but I couldn’t find a real solution to make it work seamlessly across both versions. That’s why I set the minimum supported Meteor version to 2.10. I found more details about this issue here: |
@jankapunkt now that |
I was looking to move to the next version to avoid issue with install of python for node-sass, but one key feature is missing |
This feature has theoretically lost its purpose in 5.0 since predefined search paths are no longer necessary for relative imports. The
However, if there are specific cases where |
I do understand there are some workaround and I can manage this, however I have one file called I just wanted to avoid the use of And I am lucky if my |
I see your point, and I totally understand why A good alternative is using @forward "{}/some/very/long/path/for/holding/my/mixins/folder"; Then, in your SCSS files, instead of @import "mixins", you can simply use: @use "{}/client/mixins" as *; This way, all your mixins and variables are available everywhere without having to update each file individually. It’s more modular and keeps your paths clean while ensuring better compatibility with future Sass versions. I hope I understood your issue correctly, but if not, let’s discuss it further! 😊 Maybe it's worth considering a hot prefix for @StorytellerCZ, what do you think about this? Whichever direction we take, I believe this feature discussion should be moved to a separate issue. |
Don't really have opinion here. Since we are doing a major version upgrade it is allowed to break some things, just need to ensure that it is properly documented and mentioned in the migration docs. |
@illusionfield I agree with @StorytellerCZ that major bump will require detailed migration guidelines and/or references to "modern" SCSS/SASS practices, especially on including/importing files |
@dr-dimitru I wouldn’t rule out the possibility of it being merged back soon, but there's also a critical bug that just came up (here), so there's still some work to do to ensure everything is in good shape for everyone. |
@illusionfield I left comments for migration doc and changes in readme |
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.
Please see my comments regarding documentation
@illusionfield just let me know when there is a beta release to be published, I will then review and publish. |
@dr-dimitru when do you think the documentation is likely to be ready? |
I have updated the documentation—it's not necessarily perfect, but should be a good improvement. I have also fixed all issues related to the 5.0 release. The current version is 5.0.0-alpha.3. @jankapunkt I believe the package is ready for the beta release. |
I released |
I hope the PR can be merged soon, as I would like to switch back from the temporary alternative to the official version in my projects. 😃 |
I took some inspiration from here: veliovgroup/flow-router#123 |
Hi everyone, Some time has passed, and the latest release seems to be working fine. @dr-dimitru, @StorytellerCZ Do you have any feedback or observations regarding the documentation? @jankapunkt If the documentation is also in good shape, then maybe this could be rc.0 instead of beta. Additionally, I have a question: |
no problem
We first need to make sure we have at least one or two more people testing this as part of their running apps. I have two mid-sized apps with bootstrap and some custom SCSS and would like to check this out. However, I'm currently occupied with some other things at work.
How is this integrated within your project? Simply by installing the package or by some "linking"? If you need to link this somewhere then I would go for a dependency-injection. |
@jankapunkt Right now, it's still for private use, and I'm evaluating whether it makes sense to proceed in this direction. I'm already using it in a few projects, and it works—but of course, that doesn't necessarily mean it's suitable for the official community package. That still needs to be determined. |
I'll review/push changes sometime soon. Wrapping up now with my packages that await for update by community
No problem, will test and report here soon
@illusionfield Same question here, if it will be solved with simple |
The integration is as simple as running: meteor npm install –save-dev sass or meteor npm install –save-dev sass-embedded No additional linking or special setup is required. There are multiple reasons for this approach
|
Addressed an issue where running `meteor test-packages` in Meteor 2 failed due to npm dependency installation errors related to the `meteor-node-stubs` update. This fix ensures compatibility and resolves the 'npmignore: command not found' error during package tests. For more details, see: meteor/meteor#13691
- Removed `sass` as a direct dependency to allow full control over Sass versioning - Enables usage of both `sass` and `sass-embedded` via devDependencies - Updated README.md for improved clarity, examples, and migration guidance - Bumped version to `5.1.0-beta.1` to reflect breaking internal change
…ckage tests" This reverts commit 122359f.
Closing this PR in favor of the consolidated version here: That PR targets |
Closing this PR in favor of the consolidated version here:
➡️ #329 – Finalize Dart Sass migration & drop direct dependency
That PR targets
release/5.0.0
and includes all changes from this one, along with updated docs and migration instructions.Looking forward to your feedback there!
Hi,
I've spent quite some time working on the integration of Meteor JS and Dart Sass. Given how things are evolving with Dart Sass, I wanted to share my approach. I'm really curious to hear the feedback from the maintainer community on whether this direction is viable.
seba:minifiers-autoprefixer
dependency and aligned it with Meteor’s standard-minifier, which now generates perfect mappings.scss-config.json
for improved handling.includePaths
config option seems less relevant now, but this might need further review to cover any cases I might have missed.@import "{my-package:pretty-buttons}/...";
implementation.