New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

mix-tailwindcss

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mix-tailwindcss

Tailwind CSS wrapper for Laravel Mix.

latest
Source
npmnpm
Version
1.3.0
Version published
Weekly downloads
7K
13.33%
Maintainers
1
Weekly downloads
 
Created
Source

Laravel Mix Tailwind CSS

Laravel Mix Tailwind CSS

Latest Version on NPM Software License StyleCI Total Downloads

This extension provides instant Tailwind CSS support to your Mix builds.
Please make sure that you are using laravel-mix version 2.1 or higher.

This package works with Tailwind version 1.0 or higher but also with earlier versions.

Usage

You can install the package with npm or yarn:

npm install mix-tailwindcss --save-dev
yarn add mix-tailwindcss --dev

Then require the extension in your Mix configuration:

const mix = require('laravel-mix');

require('mix-tailwindcss');
...

Enable the extension by calling tailwind() in your Mix chain:

mix.sass('resources/sass/app.scss', 'public/css')
   .tailwind();

If you are using a custom configuration file name, you will need to specify it when calling tailwind():

mix.sass('resources/sass/app.scss', 'public/css')
   .tailwind('./tailwindcss-config.js');

And you're done!

Don't forget to add the Tailwind directives to your css entry file.

PostCSS with postcss-import

If you're not integrating any Sass, Less or Stylus stylesheets you can use the mix.postCss() method.

When the postcss-import plugin is installed, it will be automatically detected and applied to your build.

mix.postCss('resources/css/app.css', 'public/css')
    .tailwind();

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Keywords

laravel

FAQs

Package last updated on 20 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts