sbt / sbt-rjs

RequireJs optimizer plugin for sbt-web
Other
39 stars 28 forks source link

Option to disable the CDN processing (webjars) #45

Open sebdotv opened 9 years ago

sebdotv commented 9 years ago

Properly disabling CDN usage (e.g. for security reasons) with webjars isn't possible at the moment: digesting is not taken into account (the config re-writing does not occur).

Corresponding thread: https://groups.google.com/d/msg/play-framework/N4f8Cz_vAMM/ArD7B2AWAlgJ

ricardobarone commented 9 years ago

+1

elvenking commented 9 years ago

+1

rlamarche commented 9 years ago

+1

gbicou commented 9 years ago

+1

DieterLi commented 9 years ago

+1

DieterLi commented 9 years ago

I think rjs could be improved much smarter. For instance, actually, I have 2 home pages, one for the whole web site, another used as the accessing gate to the backend management. And I use 2 main config files for them each. During the build pipeline, rjs only treat the one in index page, and leave the one in backend index page as it is.

So open an setup parameter for such kind of situation could be much more helpful to the real cases.

Thanks for the hard work.

ghost commented 9 years ago

+1

victorjussiani commented 9 years ago

+1

pbelmann commented 9 years ago

+1

anton-fomin commented 9 years ago

+1

legacycode commented 9 years ago

+1

legacycode commented 9 years ago

it seems to me that the following parameter disables the cdn generation. now my webjars (jquery, knockout, etc.) are icluded in my module files and are minified. it would be great if somebody can confirm this.

webJarCdns := Map()

dvic commented 9 years ago

@legacycode Indeed, you can disable cdn by adding RjsKeys.webJarCdns := Map.empty to your build.sbt (at least, this works for me)

zoltan-o commented 9 years ago

+1

MipH commented 8 years ago

Where is vote button?.. +1

ignacioPL commented 8 years ago

+1

huntc commented 8 years ago

PRs are more powerful than +1s. :-)