“Instale o TainWind no Laravel” Respostas de código

Instale o TainWind no Laravel

/* ./resources/css/app.css */
@tailwind base;
@tailwind components;
@tailwind utilities;
Inexpensive Ibex

Instale o TainWind no Laravel

npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init

//webpack.mix.js
mix.js("resources/js/app.js", "public/js")
  .postCss("resources/css/app.css", "public/css", [
    require("tailwindcss"),
  ]);
  
//tailwind.config.js
module.exports = {
  content: [
    "./resources/**/*.blade.php",
    "./resources/**/*.js",
    "./resources/**/*.vue",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}

//app.css
@tailwind base;
@tailwind components;
@tailwind utilities;

npm run watch

//NOTE : Make sure your compiled CSS is included in the <head> then start using Tailwind’s utility classes to style your content.
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
Wandering Wolverine

Respostas semelhantes a “Instale o TainWind no Laravel”

Perguntas semelhantes a “Instale o TainWind no Laravel”

Mais respostas relacionadas para “Instale o TainWind no Laravel” em Shell/Bash

Procure respostas de código populares por idioma

Procurar outros idiomas de código