laravel-mix-tailwind.js
//method to call once all settings are loaded
method to call once all settings are loaded
method to call once all settings are loaded
boot(){
        console.log("MIX:", Mix)
        if(Mix.components.has('sass')){
            Config.processCssUrls = false;
        }
        let tailwindcss = require('tailwindcss');
        Config.postCss.push(tailwindcss(this.configPath));
    }
boot ( ) { console . log ( "MIX:" , Mix ) if ( Mix . components . has ( 'sass' ) ) { Config . processCssUrls = false ; } let tailwindcss = require ( 'tailwindcss' ) ; Config . postCss . push ( tailwindcss ( this . configPath ) ) ; }
method to call once all settings are loaded
method to call once all settings are loaded
//we have access to the Mix object and its settings eg Mix.components