Files
sage/resources/assets/build/postcss.config.js
2018-06-09 09:49:34 -06:00

16 lines
362 B
JavaScript

/* eslint-disable */
const cssnanoConfig = {
preset: ['default', { discardComments: { removeAll: true } }]
};
module.exports = ({ file, options }) => {
return {
parser: options.enabled.optimize ? 'postcss-safe-parser' : undefined,
plugins: {
autoprefixer: true,
cssnano: options.enabled.optimize ? cssnanoConfig : false,
},
};
};