Inhalte aufrufen

Profilbild

Can't minify JS and CSS


  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
1 Antwort zu diesem Thema

#1 nickh

nickh

    Erfahrener Benutzer

  • Members
  • 129 Beiträge

Geschrieben: 30 April 2015 - 16:47

I've built the solution in 'Release' mode and turned on asset bundling.  I can see that it IS using bundling (all css and JS are combined into a single file), BUT the contents of these bundles are not minified.  This is resulting in requests for bundled files which are about 150k.

 

I've even tried changing the references to some of the JS files (e.g jquery.2.1.1.js to jquery.2.1.1.min.js), in the view which pulls in the resources, but this still has no effect.

 

Is this a bug, or am I doing something wrong?

 

Where does the solution reference the JS (so I can change it to force it to look for .min equivalent)?



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3799 Beiträge

Geschrieben: 30 April 2015 - 19:00

Script are internally minified by the bundler, so no necessity to reference min version of scripts.

Marcus Gesing

Smartstore AG