You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Centrallix JavaScript does not use any kind of compilation process or transpiling, minification, etc. Drivers for different kinds of widgets, for instance, just have their raw JS files linked directly in the HTML.
Building Centrallix JS with a tool like Webpack instead could allow for various benefits:
Babel transpilation, which lets you use modern ES6 JavaScript features while still retaining high browser compatibility. Having ES6 available means code can be much cleaner as well as more accessible to modern JS developers.
Minification, which can drastically reduce JS file sizes and thus make requests for them much faster.
Bundling, which can reduce the number of requests for JS files that need to be made to the server.
More extensive compilation with a tool like Google Closure, which can compress JS files even further.
It could be possible to start using TypeScript incrementally.
These are all very standard, widely used modern JS practices that would be familiar to any reasonably experienced JS developer.
However, implementing a Webpack toolchain could also have some downsides:
I'm not familiar with all the ins and outs of how Centrallix JS works, and wouldn't be surprised if some way it's set up would be difficult to integrate with Webpack and the kinds of JS architectures it's designed for.
As such, it might take a fair bit of work to get a Webpack toolchain working reliably.
Even though all of these tools are used and trusted widely, any kind of npm-based development involves complex dependency trees that some people see as security liabilities.
Using a toolchain like this always adds some complexity - more potential points of failure, more things to learn, more onboarding necessary for new developers.
More research on the pros and cons is needed, as well as more consideration of how high-priority a project like this would be.
The text was updated successfully, but these errors were encountered:
Currently, Centrallix JavaScript does not use any kind of compilation process or transpiling, minification, etc. Drivers for different kinds of widgets, for instance, just have their raw JS files linked directly in the HTML.
Building Centrallix JS with a tool like Webpack instead could allow for various benefits:
However, implementing a Webpack toolchain could also have some downsides:
More research on the pros and cons is needed, as well as more consideration of how high-priority a project like this would be.
The text was updated successfully, but these errors were encountered: