blob: 3e7b267516faecd61b22baa6311b25f119e62579 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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;
};
|