jaiarobotics / jaiabot

Jaiabot source code
Other
17 stars 2 forks source link

task/jcc-use-minimize-jaia-1280 #912

Closed edsanville closed 1 week ago

edsanville commented 3 weeks ago

Do not use devtool: eval-source-map option when building JCC for production, (reduces 35 MB product down to 7 MB!)

edsanville commented 2 weeks ago

Looks good to me but did not understand it all

I did do some refactoring of the webpack configuration.

The configuration is built by using the last line:

    return [
        Object.assign({}, baseConfig, modeConfig, jedConfig),
        Object.assign({}, baseConfig, modeConfig, jccConfig),
    ];

This just takes a new empty object {}, and then updates it in place with the baseConfig, then the modeConfig, then the config for the target app... basically fusing the three configs together. I will add some comments to that effect.