Re: [cfwheels] asset bundler not bundling

26 views
Skip to first unread message

Yannick Morin

unread,
Nov 10, 2012, 4:44:08 PM11/10/12
to cfwh...@googlegroups.com
Hi Kristof,

Try like this:

#javaScriptIncludeTag(bundle="all")#

 Bundle for JS files --->
#generateBundle(sources="bootstrap.min,ajax,country", 
compress="false", type="js", bundle="all")#




On Sat, Nov 10, 2012 at 5:38 PM, kristof polleunis <kristof....@gmail.com> wrote:
I used the asset bundler plugin to bundle my javascript into one file

      #javaScriptIncludeTag(sources="bootstrap.min.js,ajax.js,country.js", bundle="all", async="async")#

and 

   generateBundle(type="js", bundle="all"); <!--- in onapplicationstart.cfm --->

The file is generated like this:
 

 

--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cfwheels/-/dzOmcH-6MVcJ.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.

stofke

unread,
Nov 10, 2012, 4:53:10 PM11/10/12
to ColdFusion on Wheels
Ok I had to set permissions on the javascripts folder to 777, because
the script was complaining it couldn't write to the folder. Once I
updated the permissions, it worked fine.

I just wonder why the other syntax is not working as it's also
documented and safer if the plugin doesn't work it falls back to the
regular non-bundled scripts, while this way if the plugin doesn't work
it will generate an error saying there's no sources in the
javaScriptIncludeTag.

On 10 nov, 22:44, Yannick Morin <ymorin...@gmail.com> wrote:
> Hi Kristof,
>
> Try like this:
>
> #javaScriptIncludeTag(bundle="all")#
>
>  Bundle for JS files --->
> #generateBundle(sources="bootstrap.min,ajax,country",
>  compress="false", type="js", bundle="all")#
>

stofke

unread,
Nov 10, 2012, 5:01:23 PM11/10/12
to ColdFusion on Wheels
I also noticed bundling bootstrap with my other js causes it to stop
working. After separating it works.

kristof polleunis

unread,
Nov 12, 2012, 2:14:04 AM11/12/12
to cfwh...@googlegroups.com
Thanks Yannick your solution seems to work

Op zaterdag 10 november 2012 23:01:24 UTC+1 schreef kristof polleunis het volgende:
> > > cfwheels+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages