Jump to content

Topic on Talk:ResourceLoader/Package files

Can I use files AND packageFiles

3
Summary by Roan Kattouw (WMF)

It's now explicitly documented that you can't do this.

Jdlrobson (talkcontribs)

Is it possible to have a RL module that defines both files and packageFiles. e.g. are they additive ?

Roan Kattouw (WMF) (talkcontribs)

No. I should document this more clearly: if you use packageFiles, you cannot use scripts, languageScripts, or any of the other *scripts properties. You can define CSS files of course (in the *styles properties).

Roan Kattouw (WMF) (talkcontribs)

...I should also add that if you do try to do this, you will get an exception at definition time, telling you that the two properties are mutually exclusive