/react-webpack-5-tailwind-2

Webpack 5 boilerplate with React 17, Tailwind 2, using babel, sass, with a hot dev server and an optimized production build

Primary LanguageJavaScriptMIT LicenseMIT

react-webpack-5-tailwind-2

Webpack 5 boilerplate with React 17, Tailwind 2, HMR, using babel, sass, with a hot dev server and an optimized production build

Last Changes:

  • added Prettier
  • added react-refresh-webpack-plugin for HMR

Installation

git clone https://github.com:altafino/react-webpack-5-tailwind-2.git
cd react-webpack-5-tailwind-2
yarn / npm i

Usage

Development server

yarn start / npm start

You can view the development server at localhost:3000. (change port in ./config/webpack.dev.js)

Production build

 yarn build / npm run build

Features

Dependencies

webpack

Babel

Loaders

Eslint

Plugins

(originaly based on https://github.com/miami78/webpack5-react-boilerplate.git)