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 extension based config item #97

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

milanc
Copy link

@milanc milanc commented Mar 15, 2024

This is to address feature request I've created #96.

Behavior

Once extension is added to config file then all the files with that extension are compiled without need for adding them to the config.
Right click on the file with a configured extension will not have option to be removed from the compiler config.
Recompile all will also compile all files matching the extension.
Running the compilation from Task Explorer will compile all files matching the extension.
To avoid performance impact, folder scan for files matching extension is cached.
New files, added through visual studio, that match the extension will also be compiled.

Known Issue

If files are added outside visual studio while the project is open, we need to run recompile all for the file to be included in compilation.

With these changes the extension supports config file like this.

[
  {
    "outputFile": "*.razor.css",
    "inputFile": "*.razor.scss",
    "minify": {
      "enabled": false
    }
  },
  {
    "outputFile": "stest.css",
    "inputFile": "stest.scss"
  }
]

And task explorer shows this
image

@milanc milanc force-pushed the master-03-ext-wildcard-01 branch from 230ea44 to f2efe04 Compare April 4, 2024 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant