Path

ez projects / ezjscore / forum / general / disable packer in design.in...


Disable packer in design.ini FrontendJavascriptList ?

You need to be logged in to post messages in the forums. New users may register here.

Jerome Despatis

Member since:
11 November 2008

Posts: 20

Monday 21 February 2011 11:19:10 am

Hi,

I have some js codes (checked with JSLint) I can include with ezjscore.
Works great, so I could use Packer=3

BUT, I also include some js thanks to : (in design.ini)



[JavaScriptSettings]


FrontendJavaScriptList[]=release/1.0.0/dojo/dojo.js




and those included js (dojo.js is just one example among others), haven't been checked with JSLint (I don't have the hand on these js, I just get them from the outside)

So because of those javascripts, I can't use packer=3, I still have to use Packer =2

=> Hence my question, is it possible to tell to my extension: please use Packer=3, except for files included in FrontendJavascriptList...

Maybe I can add some arguments in the js included in FrontendJavascriptList ?

Any idea is welcome !
Up

André R.

Member since:
14 January 2008

Posts: 170

Tuesday 22 February 2011 11:15:19 am

There is no such option at the moment.
Best is probably to use Packer=2 (this is the default when enabled) on your front end siteaccess.

Lead Engineer eZ Publish
@: http://twitter.com/andrerom

Up

Jerome Despatis

Member since:
11 November 2008

Posts: 20

Saturday 02 July 2011 2:43:16 pm

I've added 2 feature requests for your information

http://issues.ez.no/IssueView.php?Id=18431
and
http://issues.ez.no/IssueView.php?Id=18430

the 18431 would be a good feature to let the user choose the packerEngine (JSMin, or yui compressor, dojo shrinksafe) and would solve the problem to define a packer level per js file

Hope it helps
Up

You need to be logged in to post messages in the forums. New users may register here.