notiz-dev / ngx-tailwind

💨 Simple Angular schematic that initializes Tailwind CSS in your project and adds a custom webpack config to your build process.
https://notiz.dev/blog/angular-10-with-tailwindcss#use-tailwind-css-utility-classes
MIT License
128 stars 9 forks source link

Incorrect tailwind directives when cssFormat=css #21

Closed carmanchris31 closed 3 years ago

carmanchris31 commented 3 years ago

Problem: Schematic is inserting directives for scss even when cssFormat=css

@tailwind 'tailwindcss/base';

@tailwind 'tailwindcss/components';

@tailwind 'tailwindcss/utilities';

This results in none of the tailwind styles being included in src/styles.css

Expected behavior: Schematic should add this instead when cssFormat=css

@tailwind base;

@tailwind components;

@tailwind utilities;

References:

marcjulian commented 3 years ago

@carmanchris31 thanks for reporting. Should be fixed in https://github.com/notiz-dev/ngx-tailwind/releases/tag/v2.2.1