aboutsummaryrefslogtreecommitdiff
path: root/postcss.config.js
blob: 65a5b8a8044473bc1637eb24b290dfb83054bf4e (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: {
            'postcss-import': {},
            'stylelint': production ? false : {},
            'postcss-preset-env': { stage: 0 },
            'cssnano': production ? { preset: 'default' } : false,
        },
    };
    return config;
};