PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

I did a React Boilerplate with Webpack 5, TailwindCSS 2

I did a React Boilerplate with Webpack 5, TailwindCSS 2

I published a simple but powerful React Boilerplate with Webpack 5, React 17, Tailwind 2, using babel, sass, with HMRScreenshot from 2021-01-03 06-46-38.png and an optimized production build.

Updated (newest first):

  • added build-staging script. same as build but using .env.staging
  • added SVGR as a webpack loader to import your SVG directly as a React Component.
  • added dotenv-webpack to handle process.env.VARS
  • added Prettier
  • added react-refresh-webpack-plugin for HMR
  • 2 PR's accepted

Github repo

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

Any feedback is welcome :-)

Dependencies

webpack

Babel

Loaders

Eslint

Plugins

Cheers Stefan - Fullstack Developer - Go/JS

Comments (0)

loading comments