fix(tailwind): Ensure tailwind properly purges unused utility classes (#2485)
This commit is contained in:
1 parent
44e935f209
commit
3220af737c
33 files changed
+1028
-243
No files matched your search
@@ -2,8 +2,10 @@ module.exports = {
|
||||
prefix: '',
|
||||
important: false,
|
||||
separator: ':',
|
||||
purge: false, // TODO: unclear how we should purge when using a component library in another app
|
||||
//purge: ['./src/**/*.jsx', './src/**/*.js'],
|
||||
purge: {
|
||||
content: ['./src/**/*.{jsx,js,css}'],
|
||||
safelist: [],
|
||||
},
|
||||
theme: {
|
||||
screens: {
|
||||
sm: '640px',
|
||||
@@ -749,7 +751,7 @@ module.exports = {
|
||||
],
|
||||
borderRadius: ['responsive', 'focus', 'first', 'last'],
|
||||
borderStyle: ['responsive', 'focus'],
|
||||
//borderWidth: ['responsive', 'focus', 'first', 'last'],
|
||||
borderWidth: ['responsive', 'focus', 'first', 'last'],
|
||||
boxShadow: ['responsive', 'hover', 'focus'],
|
||||
boxSizing: ['responsive'],
|
||||
cursor: ['responsive'],
|
||||
@@ -826,4 +828,8 @@ module.exports = {
|
||||
},
|
||||
corePlugins: {},
|
||||
plugins: [],
|
||||
future: {
|
||||
purgeLayersByDefault: true,
|
||||
standardFontWeights: true,
|
||||
},
|
||||
};
|
||||
Reference in new issue
Block a user