“Installieren Sie Rückenwind -CSS in der React -App” Code-Antworten

So installieren Sie Rückenwind -CSS in React ordnungsgemäß

@import "tailwindcss/base";

@import "tailwindcss/components";

@import "tailwindcss/utilities";
Southern Boubou

Rückenwind -CSS in React

/* ./src/index.css */
@tailwind base;
@tailwind components;
@tailwind utilities;
Handsome Hornet

reagieren Sie den Rückenwind -CSS -Komponenten NPM

// with npm
npm install react-tailwindcss-components
 
// with yarn
yarn add react-tailwindcss-components
Frantic Fowl

Rückenwind -CSS in React

  // tailwind.config.js
  module.exports = {
-   purge: [],
+   purge: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'],
    darkMode: false, // or 'media' or 'class'
    theme: {
      extend: {},
    },
    variants: {
      extend: {},
    },
    plugins: [],
  }
Handsome Hornet

Installieren Sie Rückenwind -CSS in der React -App

module.exports = {
  content: [
    "./src/**/*.{js,jsx,ts,tsx}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}
konki developer

Ähnliche Antworten wie “Installieren Sie Rückenwind -CSS in der React -App”

Fragen ähnlich wie “Installieren Sie Rückenwind -CSS in der React -App”

Weitere verwandte Antworten zu “Installieren Sie Rückenwind -CSS in der React -App” auf JavaScript

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen