server
server copied to clipboard
JavaScript compressor issue
Case in point: when we attempt to include react-plotly.js
(which spits out huge output files!), and try and compress the JavaScript with compressor.filters.jsmin.JSMinFilter
and compressor.filters.jsmin.CalmjsFilter
, compression fails. When we remove compressor.filters.jsmin.CalmjsFilter
, it compiles (allegedly having compressed things down), but does not work in the browser. The compression is not working correctly in some instances.
So is there a configuration issue with the compressor, or do we just need to find a new compressor?
Look for COMPRESS_JS_FILTERS
in worker/worker/settings/base.py
.