Skip to content

React 17 Boilerplate with Webpack 5, Tailwind 2, using babel, SASS, HMR, dotenv and an optimized production build

License

Notifications You must be signed in to change notification settings

tdemarest/react-webpack-5-tailwind-2

 
 

Repository files navigation

react-webpack-5-tailwind-2

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

Last Changes (the newest first):

  • added build-staging script. same as build but using .env.staging
  • added dotenv-webpack to handle process.env.VARS
  • 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

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

About

React 17 Boilerplate with Webpack 5, Tailwind 2, using babel, SASS, HMR, dotenv and an optimized production build

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.4%
  • HTML 2.0%
  • SCSS 0.6%