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

PostCSS plugin is not assigned when PostCSS plugins is typeof Array #34

Closed
andrewvasilchuk opened this issue Oct 16, 2019 · 2 comments
Closed
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@andrewvasilchuk
Copy link
Contributor

andrewvasilchuk commented Oct 16, 2019

I am getting an error, because previously in my Nuxt.js project (scaffolded with create-nuxt-app) I have build.postcss which type is Array. I googled a little and found out that this syntax is deprecated, and you should use object notation instead, like stated in docs.

I skimmed through module.js and found the following line of code:

https://github.com/nuxt-community/nuxt-tailwindcss/blob/004fc2d755eeac9194c0441c51e076be8bda71fb/lib/module.js#L34

I think it would be nice if you can support deprecated syntax, so users do not get sneaky errors.

@atinux
Copy link
Collaborator

atinux commented Oct 21, 2019

Hi @andrewvasilchuk

I think it's possible yes, actually it should be quite easy, I don't have much time right now but will be happy to review a PR :)

@atinux
Copy link
Collaborator

atinux commented Nov 5, 2019

Released in v1.2.0

@atinux atinux closed this as completed Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants