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, 'postcss-url' : { url: 'copy', assetsPath: '', useHash: true } }, }; return config; };