module.exports = (ctx) => { const production = ctx.env === 'production'; const config = { map: production ? false : ctx.options.map, plugins: { 'autoprefixer': { grid: true }, 'stylelint': production ? false : {}, 'postcss-import': {}, 'postcss-preset-env': { stage: 0 }, 'cssnano': production ? { preset: 'default' } : false, }, }; return config; };