Liferay concatenate and compress javascript -
i trying figure out how achieve compression , minification js files. have them in hook plugin under /html/js/mycustomjs/ folder.
i understand liferay has own mechanism compress javascripts, in barebone.jsp or everything.jsp, , found list of files declared in javascript.barebone.files , javascript.everything.files properties on portal.properties.
the question is, can use mechanism compress js files of own ? should override such properties in portal-ext.properties ? or should use minifierfilter myself ?
moreover, hook plugin right place put js files want available on of portal's sites?
override javascript.bundle.dependencies= , javascript.bundle.ids= properties in portal-ext.properties, see http://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/javascri-3
something this:
javascript.my.files =\ jquery-1.8.3.js,\ my-script.js javascript.bundle.ids=\ javascript.barebone.files,\ javascript.everything.files,\ javascript.my.files javascript.bundle.dependencies[javascript.barebone.files]=javascript.my.files furthermore, don't think hook plugin right place such requirements. opinion better way put javascripts central theme.
Comments
Post a Comment