You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
362 B
15 lines
362 B
/* eslint-disable */ |
|
|
|
const cssnanoConfig = { |
|
preset: ['default', { discardComments: { removeAll: true } }] |
|
}; |
|
|
|
module.exports = ({ file, options }) => { |
|
return { |
|
parser: options.enabled.optimize ? 'postcss-safe-parser' : undefined, |
|
plugins: { |
|
cssnano: options.enabled.optimize ? cssnanoConfig : false, |
|
autoprefixer: true, |
|
}, |
|
}; |
|
};
|
|
|