scss-bundle icon indicating copy to clipboard operation
scss-bundle copied to clipboard

Add support for fileextension config

Open Akkora opened this issue 4 years ago • 0 comments

Problem We are using the scss-bundler in a project with a lot of other files (like .js, .ts, .json, etc.) The --watch command is triggering the build every time, any file changes, but often there are no changes in the relevant files (.scss, .css, .sass). This is a huge performance problem and therefore slowing down our development process.

Possible Solution A config property called fileExtensions could be included, that describes all the used file extensions.

{
  "bundlerOptions": {
    "entryFile": "my-project/src/entry.scss",
    "outFile": "dist/out.scss",
    "rootDir": "my-project/src",
    "project": "../../",
    "fileExtensions: [
      ".scss",
      ".sass",
      ".css"
    ],
    "ignoreImports": [
      "~@angular/.*"
    ],
    "logLevel": "debug"
  }
}

Alternative Maybe it would make sense to watch only for .scss, .sass, .css as default and do not add this config parameter?

Akkora avatar Mar 19 '20 12:03 Akkora