openreplay/frontend/postcss.config.js
Shekar Siri 2ed5cac986
Webpack upgrade and dependency cleanup (#523)
* change(ui) - webpack update
* change(ui) - api optimize and other fixes
2022-06-03 16:47:38 +02:00

23 lines
No EOL
698 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/nesting': {},
tailwindcss: {},
autoprefixer: {},
//'postcss-preset-env': {}, //includes autoprefixer
cssnano: env === 'production' ? cssnanoOptions : false,
}
});