PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Unsolved

Day 4 missing webpack.mix.js

dragazzo

Oct 25th, 2022 07:10 AM

On the SAAS Adventure day 4 they are using laravel 6 and it's installed the tailwind into the webpack.mix.js file... I don't have this file into my laravel 9.3.8.... What to do?

bobbyiliev

Oct 25th, 2022 08:19 AM

Hi there,

Indeed, recently Laravel moved from Laravel Mix to Vite.

You can try with:

npm install laravel-mix --save-dev

And then create the file:

touch webpack.mix.js

Example content:

// webpack.mix.js

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

mix.js('src/app.js', 'dist').setPublicPath('dist');

Let me know how it goes!

dragazzo

Oct 25th, 2022 12:35 PM

I downgraded to laravel 8 and now I could install the laravel-mix correctly. I made all the ajustments and could compile the npm run watch... all the css files where created... but now I got another problem. the website lost all css configuration... got some error -webkit-apperance as you can check on the attached imageerror.png

bobbyiliev

Oct 26th, 2022 01:38 AM

Hi there,

Have you tried using the CSS file from the lecture files? Also where did you add your CSS? If you define the CSS directly in the public folder, it will be overwritten every time you run the npm build command.

Regarding the screenshot, this is just a warning and should not cause an issue, you could just define the appearance property right bellow the webkit-appearance property to fix the warning.