huridocs/uwazi

View on GitHub
postcss.config.js

Summary

Maintainability
A
0 mins
Test Coverage
const tailwindcss = require('tailwindcss');
const prefixSelector = require('postcss-prefix-selector');

module.exports = {
  plugins: [
    tailwindcss('./tailwind.config.js'),
    prefixSelector({
      prefix: '.tw-content',
      transform(_prefix, selector, prefixedSelector, filePath, _rule) {
        if (filePath.includes('flowbite.min.css')) {
          return selector;
        }
        return prefixedSelector;
      },
    }),
  ],
};