solidify / vsts-task-tokenize-in-archive

VSTS build and release task to replace tokens in an archive file
5 stars 3 forks source link

not replacing the token when js file is minified #5

Closed graphicsxp closed 5 years ago

graphicsxp commented 5 years ago

We have a javascript file called main.js. The tokens in this files are replaced by the plugin.

But if we minify the code inside this file and we rename it to main.e329d6fedce16d5bcefe.js , then the tokens are not replaced. There is nothing in the log file, other than the fact that the file was found :

Searching for all .zip files at f:_work\r4\a\eCdT-Evolution\drop\ Searching for main..js inside *.zip files

Matched zip: F:_work\r4\a\eCdT-Evolution\drop\ Matched file in zip: main.e329d6fedce16d5bcefe.js

Finishing: Tokenize myProject.zip

Any idea what could cause the plugin to fail ?

graphicsxp commented 5 years ago

I forgot to mention that in the task definition we specify the name of the file like this : main.*.js

the wildcard could be a problem ?

graphicsxp commented 5 years ago

sorry my bad. The name of the file should be "main." as the powershell uses regular expression.

MOlausson commented 5 years ago

Great to hear it worked ut @graphicsxp and thanks for engaging.