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.
16 lines
362 B
16 lines
362 B
8 years ago
|
/* 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,
|
||
|
},
|
||
|
};
|
||
|
};
|