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

Add support for fileextension config #89

Open
Akkora opened this issue Mar 19, 2020 · 0 comments
Open

Add support for fileextension config #89

Akkora opened this issue Mar 19, 2020 · 0 comments

Comments

@Akkora
Copy link
Contributor

Akkora commented Mar 19, 2020

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?

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

No branches or pull requests

1 participant