JeffreyWay / laravel-mix-tailwind

mix.tailwind()
347 stars 25 forks source link

Error: Specified Tailwind config file "...\tailwind.js" doesn't exist. #19

Closed FeryBris closed 3 years ago

FeryBris commented 5 years ago

In Tailwindcss v1.1.2 config file name is tailwind.config.js

https://tailwindcss.com/docs/upgrading-to-v1#3-rename-tailwind-js-to-tailwind-config-js

etdte commented 5 years ago

Look here for solution. #8

talentedaamer commented 4 years ago

inside your project root where package.json and webpack.mix.js file is present, run the following command. npx tailwind init

it will generate a file tailwind.config.js. rename it to tailwind.js and run npm run devagain.

or simply create a file tailwind.js and paste the following default config code there.

module.exports = {
  theme: {
    extend: {}
  },
  variants: {},
  plugins: []
}

run npm run devand it will fix the error.

Elite40 commented 4 years ago

Weird that this still isn't fixed. But thanks @talentedaamer, it worked for me.

Wulfheart commented 4 years ago

@Elite40 it should be quite easy to fix.