Code Monkey home page Code Monkey logo

tailwindcss's Introduction

Dokumentasi Tailwindcss

Theme Name : Tailwindcss

Created : 15/11/2020

Author : Destroylord


Terima kasih telah memberikan kesempatan untuk membagi pengalaman saya tentang konfigurasi larvel-mix + tailwindcss.


Daftar isi

  1. Installasi laravel-mix
  2. installasi tailwindcss
  3. Browser Support

1. Installasi laravel-mix

  • Untuk installasi laravel mix bisa ikuti dokumentasi website resminya di sini.
  • Setelah installasi selesai kita tahap installasi tailwindcss

2. Installasi Tailwindcss

  • Buka terminal anda, pastikan posisi terminal berada di folder project yang baru anda install.

  • Copy script dibawah ini dan paste di terminal anda.

    npm install tailwindcss@latest postcss@latest autoprefixer@latest

  • Lanjut ketahap berikutnya, kemudian install purgeCSS untuk laravel-mix

    npm install laravel-mix-purgecss --save-dev

  • Edit file webpack.mix.js, seperti dibawah ini :

      const tailwindcss = require('tailwindcss');
      require('laravel-mix-purgecss');
    
      mix.js('src/js/app.js', 'public/js')
          .sass('src/sass/app.scss', 'public/css')
          .sass('src/sass/style.scss', 'public/css')
      
          .options({
              processCssUrls: false,
              postCss: [ tailwindcss('./tailwind.config.js') ]
          })
          .purgeCss()
          .setPublicPath('public');
    
  • Langkah selanjutnya buat konfigurasi Tailwindcss dengan perintah :

    npx tailwind init

  • Kemuduian taruh script ini di src/scss/style.scss :

    @import "tailwindcss/base";

    @import "tailwindcss/components";

    @import "tailwindcss/utilities";

  • Terakhir jalankan perintah ini diterminal anda :

    npx mix / npx mix watch

3. Browser Support

Working ke semua browser :

IE 6-8
IE 9+
Chrome
Firefox
Safari
Opera


Theme by Destroylord

Jika anda memiliki pertanyaan lain yang tidak mencangkup dalam dokumentasi, Silahkan kirim email ke [email protected].

Terima Kasih

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.