mirror of https://github.com/dessant/buster
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
296 B
JavaScript
13 lines
296 B
JavaScript
const postcssPresetEnv = require('postcss-preset-env');
|
|
const cssnano = require('cssnano');
|
|
|
|
module.exports = function (api) {
|
|
const plugins = [postcssPresetEnv()];
|
|
|
|
if (api.env === 'production') {
|
|
plugins.push(cssnano({zindex: false, discardUnused: false}));
|
|
}
|
|
|
|
return {plugins};
|
|
};
|