lbry-desktop/postcss.config.js

18 lines
504 B
JavaScript
Raw Permalink 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,
2022-03-09 16:56:18 +01:00
'postcss-modules-tilda': {},
2019-05-07 04:35:04 +02:00
},
2019-04-03 07:56:58 +02:00
};
};