Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

see the difference #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

deleonio
Copy link

@deleonio deleonio commented Mar 18, 2021

I learned that I don't need the Vite configuration for Postcss (leanupjs/leanup#1357, leanupjs/leanup#1358). But what I have done is not in itself prohibited.

There two points are relevant:

  1. I configure the path to the postcss.config.js.

vite.config.js

export default defineConfig({
  ...
  css: {
    // hear is the problem
    postcss: require(resolve(process.cwd(), "postcss.config")),
  },
  ...
});
  1. I use a other notation in postcss.config.js. (see here https://github.com/postcss/postcss#webpack)

Your

module.exports = {
  plugins: {
    "@tailwindcss/jit": {},
    autoprefixer: {},
  },
};

My

module.exports = {
  plugins: [
    require("@tailwindcss/jit"),
    require("autoprefixer")
  ],
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant