Closed ijy closed 6 years ago
Nevermind. Fixed it with:
module.exports = (ctx) => ({
plugins: {
'postcss-import': {},
'postcss-mixins': {},
'tailwindcss': ('./tailwind.js'),
'postcss-cssnext': {
browsers: ['last 2 versions']
},
'cssnano': ctx.env === 'production' ? {
preset: ['default', {
discardComments: {
removeAll: true,
},
}]
} : false,
}
})
Looks like tailwind also requires a string to the path rather than an object.
This is more of a newbie question than an issue but if you could point me in the right direction I'd appreciate it.
So I've added the plugins to my
package.json
devDependencies:And created a
postcss.config.js
file:And in my
gulpfile.js
I'm callingpostcss()
without passing anything in:But when I run things, I get the following error:
Any suggestions as to what I'm missing?