Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5447

No automatic recompile of "parent" SCSS files when using @use instead of @import

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 12.0, 12.1, 12.2, 12.3
    • None
    • None
    • Windows 10 20H2 Build 19042.867 (same issue present with previous versions)
      OpenJDK 15.0.2 (same issue with previous versions)
      Dart Sass 1.32.8 (same issue with previous versions)

    Description

      When editing and then saving .scss files with filenames starting with an underscore, files that do not start with an underscore that @import those files automatically get recompiled into CSS.

      However, the @import rule is deprecated, see: https://sass-lang.com/documentation/at-rules/import in favor of using @use rules, see: https://sass-lang.com/documentation/at-rules/use

      When using @use rules to "import" (with namespacing), changes to 'children' do not automatically trigger recompiling of the parent. This means that every time an "imported" (with @use) _file.scss file is changed, you then need to manually edit the "main.scss" file (without underscore), for example by adding a space at the end of a line, to trigger a recompile of the SCSS.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              JeroenNX Jeroen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: