chore: fix purge
This commit is contained in:
parent
d37b501751
commit
d090ba51b4
@ -1,10 +1,20 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||||
const colors = require('tailwindcss/colors')
|
const colors = require('tailwindcss/colors')
|
||||||
|
const typography = require('@tailwindcss/typography')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
purge: {
|
purge: {
|
||||||
enabled: process.env.NODE_ENV === 'production',
|
enabled: process.env.NODE_ENV === 'production',
|
||||||
content: ['./index.html', './src/**/*.vue', './src/**/*.js', './src/**/*.ts'],
|
content: [
|
||||||
|
'./index.html',
|
||||||
|
'./src/**/*.vue',
|
||||||
|
'./src/**/*.md',
|
||||||
|
'./src/**/*.js',
|
||||||
|
'./src/**/*.ts',
|
||||||
|
],
|
||||||
|
options: {
|
||||||
|
safelist: ['prose', 'prose-sm', 'm-auto'],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
variants: {
|
variants: {
|
||||||
cursor: ['responsive', 'disabled'],
|
cursor: ['responsive', 'disabled'],
|
||||||
@ -12,10 +22,9 @@ module.exports = {
|
|||||||
borderColor: ['dark', 'active', 'focus', 'disabled'],
|
borderColor: ['dark', 'active', 'focus', 'disabled'],
|
||||||
textColor: ['dark', 'hover', 'active', 'disabled'],
|
textColor: ['dark', 'hover', 'active', 'disabled'],
|
||||||
opacity: ['dark', 'hover', 'active', 'focus', 'disabled'],
|
opacity: ['dark', 'hover', 'active', 'focus', 'disabled'],
|
||||||
typography: ['dark'],
|
|
||||||
},
|
},
|
||||||
darkMode: 'class',
|
darkMode: 'class',
|
||||||
plugins: [require('@tailwindcss/typography')],
|
plugins: [typography],
|
||||||
theme: {
|
theme: {
|
||||||
extend: {
|
extend: {
|
||||||
colors: {
|
colors: {
|
||||||
|
Loading…
Reference in New Issue
Block a user