A webpack configuration generator specifically tailored for Koot.js applications, providing optimized setups for React SSR, SPA, and electron projects. Latest version 0.15.15 (released Feb 2024) with frequent minor updates. Key differentiators: built-in support for Qiankun micro-frontends, automatic SSR/SPA mode detection, and electron main process hot-reload. Targeted at Koot.js ecosystem users, not a general webpack utility.
npm install koot-webpackVerified import paths — ran on the pinned version, not inferred.
Generates a webpack configuration for a Koot.js SSR project and runs the build.
Use import instead of require(). If necessary, use dynamic import() in CommonJS.
Upgrade to webpack@5 and remove any webpack 4 specific loaders.
Replace `templateInject` with `htmlPlugin` in your config.
Use contextBridge to expose needed Node APIs to renderer processes.
Change require() to dynamic import() or set "type": "module" in package.json.
Run `npm install webpack@5 --save-dev` to install it.
Use `import { getConfig } from 'koot-webpack'` instead of `const { getConfig } = require(...)`.No dependency data recorded yet.