diff options
Diffstat (limited to 'postcss.config.js')
-rw-r--r-- | postcss.config.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 00000000..65a5b8a8 --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,14 @@ +module.exports = (ctx) => { + const production = ctx.env === 'production'; + const config = { + map: production ? false : ctx.options.map, + plugins: { + 'postcss-import': {}, + 'stylelint': production ? false : {}, + 'postcss-preset-env': { stage: 0 }, + 'cssnano': production ? { preset: 'default' } : false, + }, + }; + return config; +}; + |