gatsby-theme-klassy
Version:
klassy adds the basis for styling your Gatsby projects with [PostCSS](https://postcss.org).
21 lines (19 loc) • 493 B
JavaScript
// Options:
// presetEnvOptions?: Object<any> = {}
// postcssPlugins?: Array<any> = []
module.exports = ({ presetEnvOptions = {}, postcssPlugins = [] }) => {
console.log(presetEnvOptions, postcssPlugins)
return {
plugins: [
{
resolve: `gatsby-plugin-postcss`,
options: {
postCssPlugins: [
require(`postcss-preset-env`)({ ...presetEnvOptions }),
[...postcssPlugins]
]
}
},
]
}
}