openreplay/frontend/postcss.config.js
2021-05-01 15:12:01 +05:30

24 lines
No EOL
664 B
JavaScript

const path = require('path');
const colors = require('./app/theme/colors');
const cssnanoOptions = { zindex: false };
module.exports = ({ file, options, env }) => ({
// parser: 'sugarss', // syntax check ?
plugins: {
'postcss-import': {
path: path.join(__dirname, 'app/styles/import')
},
'postcss-mixins': {},
'postcss-simple-vars': { variables: colors },
'postcss-nesting': {},
'postcss-inline-svg': {
path: path.join(__dirname, 'app/svg'),
},
'tailwindcss': true,
autoprefixer: {},
//'postcss-preset-env': {}, //includes autoprefixer
cssnano: env === 'production' ? cssnanoOptions : false,
}
});