natemoo-re/microsite

Adding a Postcss.config.cjs

ImadBoumzaoued opened this issue · 3 comments

Hi, when adding a postcss.config.cjs along side with tailwind.config.cjs
I get this error on yarn start

Cannot find module '@snowpack/plugin-postcss'

installing using npm solved this 🤔

Interesting... yarn didn't install @snowpack/plugin-postcss? It's definitely a dependency.

I bet the default template's package-lock.json is out of date. I know yarn treats lockfiles differently than npm. I think the fix here is to remove package-lock.json from the templates entirely, it's npm specific.

Edit Huh, the template doesn't have a package-lock.json file... I wonder if this was because the range is set to ^1.0.0 and yarn picked a different version than npm? I'll bump the version.

In v1.1.0, @snowpack/plugin-postcss is being removed from Microsite's dependencies. Users will be prompted to install it manually if a PostCSS configuration is detected.