Files
gitlab-foss/config/tailwind.config.js
2024-09-06 00:13:51 +00:00

21 lines
748 B
JavaScript

const tailwindDefaults = require('@gitlab/ui/tailwind.defaults');
/** @type {import('tailwindcss').Config} */
module.exports = {
presets: [tailwindDefaults],
content: [
'./{ee,jh,}/app/assets/javascripts/**/*.{vue,js}',
'!./app/assets/javascripts/locale/',
'./{ee,jh,}/app/helpers/**/*.rb',
'./{ee,jh,}/app/components/**/*.{haml,rb}',
'./{ee,jh,}/app/views/**/*.haml',
'./node_modules/@gitlab/ui/dist/**/*.{vue,js}',
],
blocklist: [
// Prevents an irrelevant util from being generated.
// In the long run, we'll look into disabling arbitrary values altogether, which should prevent
// this from happening. For now, we are simply blocking the only problematic occurrence.
'[link:page-slug]',
],
};