TehShrike / svelte-preprocess-postcss

Use PostCSS to preprocess your styles in Svelte components
25 stars 4 forks source link

Sapper integration #3

Closed rob-balfre closed 6 years ago

rob-balfre commented 6 years ago

Spent a while this afternoon trying to get svelte-preprocess-postcss working with Sapper. Not managed to get it working yet - any pointers?

TehShrike commented 6 years ago

I dunno, sounds like a Sapper deal - tried looking for some Sapper issues? https://github.com/sveltejs/sapper/issues/213#issuecomment-375021835

rob-balfre commented 6 years ago

I had created a postcss.config.js file at the root of the sapper project and presumed svelte-preprocess-postcss was picking it up, it wasn't so just updated the webpack configs to: style: stylePreprocessor({ useConfigFile: false, plugins: [ require('precss') ] })

Working now. Thanks.