CMS Development

sonicfroots
Membro

Can't find un-minified versions of css and js files in Hubspot

resolver
I'm currently making changes to an existing Hubspot website. I can access all the templates, pages, modules etc ok through the Design Manager but I can only see the minified versions of the javascript and CSS files. Is there a way to access these in Hubspot so I can view the original code them? Am I missing something, and these have been compiled from other JS/CSS files which I haven't found yet? Or would these have been created locally by the previous developer and never uploaded?
 

Thanks,

0 Avaliação positiva
2 Solução aceitas
Anton
Solução
Autoridade no assunto | Parceiro
Autoridade no assunto | Parceiro

Can't find un-minified versions of css and js files in Hubspot

resolver

Hi @sonicfroots

so you see already minified CSS/JS files in the Design-Manager? Normally you don't need to minify CSS/JS files in the Design-Manager since HubSpot will do that for you "on page load". If the files are already minified it's most likely because they were uploaded/pasted minified. 

 

If you go back to the first/second revision(just looking, not restoring) of the file - is it miniied already? If so, then it was like so from beginning. 

 

If you want/need a unminified version of your file you can use something like https://www.unminify2.com/ 

 

 

hope this helps

 

best, 

Anton

Anton Bujanowski Signature

Exibir solução no post original

Anton
Solução
Autoridade no assunto | Parceiro
Autoridade no assunto | Parceiro

Can't find un-minified versions of css and js files in Hubspot

resolver

Hi @sonicfroots

if the first revision is minified then somebody uploaded/pasted them already minified.

 

HubSpot minifies the design-manager files by itself, so by default you don't relly need to do this.

 

 

best, 

Anton

Anton Bujanowski Signature

Exibir solução no post original

3 Respostas 3
Anton
Solução
Autoridade no assunto | Parceiro
Autoridade no assunto | Parceiro

Can't find un-minified versions of css and js files in Hubspot

resolver

Hi @sonicfroots

so you see already minified CSS/JS files in the Design-Manager? Normally you don't need to minify CSS/JS files in the Design-Manager since HubSpot will do that for you "on page load". If the files are already minified it's most likely because they were uploaded/pasted minified. 

 

If you go back to the first/second revision(just looking, not restoring) of the file - is it miniied already? If so, then it was like so from beginning. 

 

If you want/need a unminified version of your file you can use something like https://www.unminify2.com/ 

 

 

hope this helps

 

best, 

Anton

Anton Bujanowski Signature
sonicfroots
Membro

Can't find un-minified versions of css and js files in Hubspot

resolver

Thanks Anton. I've had a look back at the first revisions of both files (css and js) and they are both minified from the start so I guess they were being worked on locally perhaps, minified and then pasted into Hubspot do you think? I wasn't sure, if they were being weorked on somewhere in Hubspot which I couldn't find and then Hubspot was automatically minifying them?

0 Avaliação positiva
Anton
Solução
Autoridade no assunto | Parceiro
Autoridade no assunto | Parceiro

Can't find un-minified versions of css and js files in Hubspot

resolver

Hi @sonicfroots

if the first revision is minified then somebody uploaded/pasted them already minified.

 

HubSpot minifies the design-manager files by itself, so by default you don't relly need to do this.

 

 

best, 

Anton

Anton Bujanowski Signature