Media watcher does not watch. Basically npm run watch:com_media
terminates after it did run the first time. @dgrammatiko ?
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-06-21 16:53:32 |
Closed_By | ⇒ | alikon |
Hmmm, my bad
Change the file
build/build-modules-js/javascript/build-com_media-js.es6.js
to:and in the
build/build.js
change:line 43 from
const { mediaManager } = require('./build-modules-js/javascript/build-com_media-js.es6');
to
const { mediaManager, watchMediaManager } = require('./build-modules-js/javascript/build-com_media-js.es6');
and line 143 from
mediaManager(true);
to
watchMediaManager(true);
PS: the output of the build when watching is still
ES Module
and it's not minified, so depending on your use case you might want to adjust the output options: