nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.11k stars 3.93k forks source link

Use webpack+handlebars-loader for the Handlebars precompilation #13205

Open ChristophWurst opened 5 years ago

ChristophWurst commented 5 years ago

Is your feature request related to a problem? Please describe. The strict CSP in Nextcloud 15 forced us to precompile our templates. Currently this happens through a custom script.

Describe the solution you'd like Use webpack and the handlebars-loader to precompile and package templates with the server bundle. This will keep all the building in one place and replaces our custom script with a de facto standard tool for this task.

Describe alternatives you've considered Don't change this.

Additional context

cc @nextcloud/javascript @rullzer

MorrisJobke commented 5 years ago
  • [x] Requires #13156

This is in now.

Still doable for 16 or something for 17?

rullzer commented 5 years ago

Some is done for 16 rest we'll tackle in 17.

ChristophWurst commented 2 years ago

I assume this will slowly fade away as more stuff is written in Vue. Files is possibly the only subsystem that heavily makes use of Handlebars templates.