Moving 5 PB modules from Webpack to RS Build
One thing that plagues DNN is our build time. This is largely due to the building of the various react projects of the PersonaBar and the common libraries behind this.
This PR switches out Webpack for RSBuild for the Servers, Seo, Security, Roles and Prompt modules. RSBuild is widely regarded as the next best thing in terms of build performance even beating Vite. In local testing building the aforementioned modules sped up from say 15 seconds to just over a second.
But the build is slightly different. For a number of modules the css used to be included in the javascript. The proposed changes all pull out the CSS to its own file. This means careful checking is needed nothing has nudged/changed/etc.
Another change is that the proposed system doesn't support hot reload. But that never worked for me in the past, so I'm not sure it's a change. If someone is using this I'd love to hear.
I'd love to hear from others what they think.
To run this:
- Open a terminal in the root of the DNN repo
- Run
yarn install - Then run one of the modules in watch or build mode:
yarn run watch --scope <modulename>
For the modulename check the package.json. I.e. "prompt" for the Prompt module but "security-settings" for the Security module.