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

Use postcss-import + tailwind + postcss-html #50

Open
silveltman opened this issue Jun 10, 2022 · 0 comments
Open

Use postcss-import + tailwind + postcss-html #50

silveltman opened this issue Jun 10, 2022 · 0 comments

Comments

@silveltman
Copy link

silveltman commented Jun 10, 2022

I'm trying to setup postCSS to use:

  1. postcss-import (1 folder with multple .pcss files, which are all imported from a main.pcss)
  2. Tailwindcss
  3. postcss-html so I can have a <style/> tag in my components, so I can @apply tailwind classes to some make custom classes and maybe write some extra custom css. So a bit like in vue single file components I gues.

I'm using 11ty.

My tailwind.config.js for now:

module.exports = {
  syntax: 'postcss-syntax',
  plugins: [
    require('postcss-import'),
    require('autoprefixer'),
    require('cssnano'),
    require('postcss-preset-env'),
    require('postcss-nested'),
    require('tailwindcss'),
  ],
}

How can I do this and is using this plugin/syntax the right way to go?

Thanks!

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

No branches or pull requests

1 participant