How to keep powrlocaljs powrstagingjs powrjs files in sync
To keep powr_local.js, powr_staging.js, powr.js files in sync, pls:
- Copy and paste everything from line 26 to end of file from
powr_local.jstopowr_debug.jsANDpowr_staging.js. (The files are exactly the same except for thebase_view_url,base_data_url, anddebugfunction) - Minify
powr_debug.jsusing https://jscompress.com/ and paste that intopowr.js
UPDATE:
Puru: I have created a npm script to build it:
npm run build:powrjs
NOTE: You can NOT use any ES6 syntax in these files! They are not run through webpacker!