Skip to content

Grunt watch does not work on preprocessed files #6367

@amenk

Description

@amenk

This is a follow up to #1619 - the error was not fully fixed there.
You can see it in the code of the patch: Only if the file was not changed trough preprocessing, a symlink is created. If it was, still a copy is created and grunt watches the wrong files for changes.

Preconditions

  1. Magento 2.1.0
  2. Theme with preprocessed file, for example a custom Magento_Theme/module.less contains
    //@magento_import 'module/_collapsible_navigation.less';

Steps to reproduce

  1. Execute grunt watch
  2. Change the above module.less
  3. grunt watch does not detect the change
  4. ls reveals: in pub/static there is a (modified) copy of the file, not a symlink. grunt watch -v reveals, only pub/static but not app is watched.

Expected result

  1. Grunt should watch all file changes

Actual result

  1. Grunt does not watch changes to all files, because some files are not symlinks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: Lib/FrontendComponent: OtherIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions