CMS Development

sonicfroots
Member

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

SOLVE
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 Upvotes
2 Accepted solutions
Anton
Solution
Thought Leader | Partner
Thought Leader | Partner

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

SOLVE

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

View solution in original post

Anton
Solution
Thought Leader | Partner
Thought Leader | Partner

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

SOLVE

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

View solution in original post

3 Replies 3
Anton
Solution
Thought Leader | Partner
Thought Leader | Partner

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

SOLVE

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
Member

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

SOLVE

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 Upvotes
Anton
Solution
Thought Leader | Partner
Thought Leader | Partner

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

SOLVE

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