Skip to main content

How to keep powrlocaljs powrstagingjs powrjs files in sync

To keep powr_local.js, powr_staging.js, powr.js files in sync, pls:

  1. Copy and paste everything from line 26 to end of file from powr_local.js to powr_debug.js AND powr_staging.js. (The files are exactly the same except for the base_view_url, base_data_url, and debug function)
  2. Minify powr_debug.js using https://jscompress.com/ and paste that into powr.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!