lbry-desktop/postcss.config.js
2022-03-09 10:56:18 -05:00

17 lines
504 B
JavaScript

module.exports = ({ file, options, env }) => {
env = env || {};
file = file || {};
options = options || {};
options.cssnext = options.cssnext || null;
options.autoprefixer = options.autoprefixer || null;
options.cssnano = options.cssnano || null;
return {
parser: file.extname === '.sss' ? 'sugarss' : false,
plugins: {
'postcss-import': { root: file.dirname },
cssnano: env === 'production' ? options.cssnano : false,
'postcss-modules-tilda': {},
},
};
};