Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ashok Thota
How to bubdle my js files.
October 15, 2012 3:07 PM
Answer

Ashok Thota

Rank: New Member

Posts: 1

Join Date: September 27, 2012

Recent Posts

My "portal-ext.properties" has below info and i am trying to do bundling, but my js files does not look bundled. What else is needed?
 1admin.email.from.name=my user name
 2liferay.home=C:/Oracle/Middleware/user_projects/domains
 3admin.email.from.address=myuser@mydomain.com
 4setup.wizard.enabled=false
 5portal.ctx=/portal
 6javascript.bundle.ids=javascript.barebone.files,javascript.everything.files,javascript.myapp.files
 7javascript.bundle.dir[javascript.myapp.files]=/js
 8javascript.myapp.files=FusionCharts.HC.Charts.js,FusionCharts.HC.js,FusionCharts.jqueryplugin.js,FusionCharts.js,FusionChartsExportComponent.js,jquery.min.js
 9minifier.inline.content.cache.size=30000
10theme.css.fast.load=true
11theme.images.fast.load=true
12javascript.fast.load=true
13
14My liferay-portal.xml has below settings:-
15________________________
16
17<?xml version="1.0"?>
18<!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 6.1.0//EN"
19        "http://www.liferay.com/dtd/liferay-portlet-app_6_1_0.dtd">
20<liferay-portlet-app>
21    <portlet>
22        <portlet-name>myapp-portlet</portlet-name>
23        <preferences-unique-per-layout>true</preferences-unique-per-layout>
24        <instanceable>true</instanceable>
25        <ajaxable>true</ajaxable>
26        <header-portlet-css>http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/themes/base/jquery-ui.css</header-portlet-css>
27        <footer-portlet-javascript>/js/jquery.min.js</footer-portlet-javascript>
28        <footer-portlet-javascript>http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js</footer-portlet-javascript>
29        <footer-portlet-javascript>/js/FusionCharts.js</footer-portlet-javascript>
30        <footer-portlet-javascript>/js/FusionCharts.jqueryplugin.js</footer-portlet-javascript>
31    </portlet>
Bart Simpson
RE: How to bubdle my js files.
October 15, 2012 9:53 PM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 524

Join Date: August 29, 2011

Recent Posts

I have never tried this myself, still some values appear wrong , can you check:-
javascript.bundle.dir[javascript.myapp.files]=/js

Where is the location of this /js? are you able to locate it, does this contain any of the js files you want to be bundled. ?