elexis-eu / lexonomy

A cloud-based, open-source system for writing and publishing dictionaries.
http://www.lexonomy.eu/
MIT License
86 stars 29 forks source link

Build scripts, bundling & watch mode updates #288

Closed KCMertens closed 2 years ago

KCMertens commented 2 years ago
  1. changed npm run build to build both the riot files as well as the Vue editor. Output files of the build process are now placed in website/dist This means that relative urls from css no longer work if they are copied as-is To this end there is now a new build step that checks the css for url() and rewrites them, copying the target file into the /dist directory as well.

  2. Changed npm run watch to watch riot as well as start webpack-dev-server for the Vue editor Add a new (optional) setting to config.js to to load the graphical Vue editor from the webpack-dev-server instead of from /dist

Some other file location changes: