Skip to content

JShrink ~1.0.1 dependency munges javscript files #3040

@keithbentrup

Description

@keithbentrup

Steps to reproduce

  1. Install the reference store with a sample data
  2. Configure js minification and deploy static assets
  3. Visit a product page
    Expected result:
    Product page loads with product image and no js error in the js console
    Actual result:
    Product pages with no product image and a js error

Root cause:
JShrink munges lib/web/fotorama/fotorama.js. In my tests, JShrink 1.0.1 and JShrink 1.1.0 both munge the javascript when minifying.

This is a common problem with javascript minifiers. I've found yuicompressor to be much better, and when I minified with fotorama.js with yuicompressor, it worked.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions