CDN files are not minified

salamseo
New Member
5 0 0

Hi, 

 

The CSS and JS files of my website, which are being served from the Shopify CDN, are not being minified. Here is the URL of the page: https://devotionweddingdresses.com/products/nava, and here is the URL of the reference file URL(https://devotionweddingdresses.com/cdn/shop/t/10/assets/cart.js?v=152621234464311990471682678671) being served from the CDN, but it is not minified.

 

I need assistance in minifying the CSS and JS files.

Replies 4 (4)
NomtechSolution
Trailblazer
1245 111 139

it can be minfied using toptal website. By using that website, css and js can easily minfied

Chat on WhatsApp: +923246370042
Need a Shopify developer? noumanmasood64@gmail.com
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
salamseo
New Member
5 0 0

But what about the automatic minification of CSS and JS files that Shopify explains in the following documents:

 

Why my files are not automatically minified?

NomtechSolution
Trailblazer
1245 111 139

it needs to minify manually

Chat on WhatsApp: +923246370042
Need a Shopify developer? noumanmasood64@gmail.com
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
maxbruhn
Shopify Partner
6 0 0

If you look at the top of your file it says:

 

 

/** Shopify CDN: Minification failed

Line 16:0 Transforming class syntax to the configured target environment ("es5") is not supported yet
Line 17:13 Transforming object literal extensions to the configured target environment ("es5") is not supported yet
Line 22:6 Transforming const to the configured target environment ("es5") is not supported yet
Line 30:0 Transforming class syntax to the configured target environment ("es5") is not supported yet
Line 31:13 Transforming object literal extensions to the configured target environment ("es5") is not supported yet
Line 35:4 Transforming const to the configured target environment ("es5") is not supported yet
Line 44:19 Transforming object literal extensions to the configured target environment ("es5") is not supported yet
Line 53:22 Transforming object literal extensions to the configured target environment ("es5") is not supported yet
Line 59:10 Transforming object literal extensions to the configured target environment ("es5") is not supported yet
Line 63:14 Transforming object literal extensions to the configured target environment ("es5") is not supported yet
... and 32 more hidden warnings

**/

 

 
Shopify can't minify es6 as of today (Aug 2023)