Skip to content
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

Monitoring changes in imported files #81

Open
mhlozek opened this issue Dec 19, 2024 · 1 comment
Open

Monitoring changes in imported files #81

mhlozek opened this issue Dec 19, 2024 · 1 comment

Comments

@mhlozek
Copy link

mhlozek commented Dec 19, 2024

My sass bundle configuration looks something like this:

symfonycasts_sass:
    root_sass:
        - '%kernel.project_dir%/assets/styles/app.scss'

In the app.scss file, I then have imports like this:

@import '../components/AppProvider/AppProvider';
@import '../components/ActionList/ActionList';
@import '../components/ActionMenu/ActionMenu';
@import '../components/ActionMenu/Actions/Actions';
@import '../components/ActionMenu/MenuGroup/MenuGroup';
...

However, when I run the php bin/console sass:build --watch command, the result will only compile if I make a change to the app.scss file.

If I make a change in any imported file the automatic compilation will not start.

How do I set it to track changes to all files in the components folder?


I'm using Windows, when compiling it downloads this version of sass:

! [NOTE] Downloading Sass binary from https://github.com/sass/dart-sass/releases/download/1.69.7/dart-sass-1.69.7-windows-x64.zip

@KevinSleegers
Copy link

I'm currently facing the same issue. Have you found a way to make this work with imported files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants