Skip to main content

Installation

yarn add -D @ekz/packer
npm install --save-dev @ekz/packer

@ekz/packer installs both bundlers. An app that only uses one can install that half on its own and skip the other bundler's toolchain:

PackageInstallsImport
@ekz/packerWebpack, Vite, ESLint config, tsconfig presetsrequire('@ekz/packer').vite, .webpack
@ekz/packer-viteVite, @vitejs/plugin-react, vite-plugin-checker, sass, tsconfig presetsrequire('@ekz/packer-vite')
@ekz/packer-webpackWebpack, its loaders and plugins, Babel, the eslint engine for eslint-webpack-plugin, sass, tsconfig presetsrequire('@ekz/packer-webpack')

The standalone packages do not ship the ESLint config; add @ekz/eslint-config-packer alongside them if you want it.

Next steps​

  1. Add a Webpack config or try Vite
  2. Add ESLint flat config (optional but recommended)
  3. Add recommended scripts to package.json
  4. Copy or adapt the example app

If you are upgrading from 0.16, read Migrating from 0.16. If you are moving an existing app from Webpack to Vite, read Migrating from Webpack to Vite.