Using Visual Studio Code on Windows, system details below:
Version: 1.63.0 (system setup)
Commit: 7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e
Date: 2021-12-07T06:26:56.179Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19044
I am very green with regard to setting up and using tasks as per the documentation at: Integrate with External Tools via Tasks
I have managed to set-up multiple tasks that transpile Typescript to Javascript and then copy the Javascript files (using powershell) to another directory. I also need a task to Minify the Javascript -- that that is where I am stuck.
I have installed a "Minify" extension -- but how does one execute the extension and pass the file to be minified using tasks.json?, For example:
{
"label": "Minify Javascript",
"command": "command:extensions.Minify",
"args": [ "File", "${cwd}\\somefile.js"]
},
The above is shown only for illustration purposes only -- what I am looking for is the syntax required to execute the Minify extension and passing that extension the arguments it needs.
If anyone has an example of using an extension from within tasks.json -- please post your example as I cannot seem to find anything in the "official" documentation.