Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bootstrap
config
database
public
resources
routes
storage
tests
.editorconfig
.env.example
.gitattributes
.gitignore
README.md
artisan
composer.json
composer.lock
package.json
phpunit.xml
server.php
webpack.mix.js
yarn.lock

README.md

Mix PostCSS Bug

Something weird happens in Mix when you use multiple PostCSS configurations where it runs some configurations more than once.

In this project I'm using the following mix file:

mix.js('resources/js/app.js', 'public/js')
  .postCss('resources/css/one.css', 'public/css', [
    function () {
      console.log('\n\n  **one**')
    }
  ])
  .postCss('resources/css/two.css', 'public/css', [
    function () {
      console.log('\n\  **two**')
    }
  ])

When you run yarn run dev you'll this in the console:

**two**
**two**
**one**
**two**

I'm not sure exactly what's going on here but I have a feeling it's the source of some very weird bugs I encounter when trying to use multiple Tailwind CSS config files in the same project, as everything works as expected when I use raw webpack instead of mix.

You can’t perform that action at this time.