blob: caa81cc5dc3ccdcf896e8da27e95b14844807c07 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
module.exports = (ctx) => {
const production = ctx.env === 'production';
const config = {
map: production ? false : ctx.options.map,
plugins: {
'stylelint': production ? false : {},
'postcss-import': {},
'postcss-preset-env': { stage: 0 },
'cssnano': production ? { preset: 'default' } : false,
},
};
return config;
};
|