Webpack 5 boilerplate with support of most common loaders and modules:
- babel
- typescript (using ForkTsCheckerWebpack )
- sass, less, css modules with automatic typescript declaration
- with react support (also with react-refresh)
- esLint
- prettier (with import sorting using prettier-plugin-import-sort, import-sort-style-module-and-prefix)
- webpack dev server (proxy support is also available)
- importing svg as react components using @svgr/webpack
- postcss loader (with autoprefixer and cssnano)
- husky prehooks and lint-staged
To run this locally:
- run
git clone https://github.com/glook/webpack-typescript-react.git sample-project
- Install all dependencies using
yarn
ornpm install
- Start the development server using
yarn start
ornpm run start
- Open up http://localhost:8080