lbry-desktop/postcss.config.js

17 lines
469 B
JavaScript
Raw Normal View History

2019-04-03 07:56:58 +02:00
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 },
2019-05-07 04:35:04 +02:00
cssnano: env === 'production' ? options.cssnano : false,
},
2019-04-03 07:56:58 +02:00
};
};