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; };