Hi all,
Let’s say I have a js file a.js
with the following content:
(function (){
let asdfasdf = "asdf";
console.log(asdfasdf);
})()
If I use this resource pipe:
{{ $dscript := (resources.Get "js/dsav/dsav.js") | resources.Minify | resources.Fingerprint }}
and use the link, I see the following minified output in both live server and static file:
(function(){let a = "asdf";console.log(a)})()
But if I use the same file in a slice and use resources.Concat
, in live server I see proper minified output. But in static generated file, I see the below:
(function (){let asdfasdf = "asdf";console.log(asdfasdf);})()
The issue is that the file is minified properly if processed separately. But when concatenated with other files and minified, the output in static generated file is not minified properly.
Any suggestions?
Thank you,
Chakri