Skip to content

Monitoring changes in imported files #81

@mhlozek

Description

@mhlozek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions