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
+1
-1
@@ -56,7 +56,7 @@ function() {
|
||||
<span
|
||||
className={classnames(
|
||||
isActive ? 'text-black' : 'text-aqua-pale',
|
||||
'font-thin text-sm'
|
||||
'font-light text-sm'
|
||||
)}
|
||||
>
|
||||
{subtitle}
|
||||
|
||||
@@ -56,7 +56,7 @@ function() {
|
||||
<span
|
||||
className={classnames(
|
||||
isActive ? 'text-black' : 'text-aqua-pale',
|
||||
'font-thin text-sm'
|
||||
'font-light text-sm'
|
||||
)}
|
||||
>
|
||||
{subtitle}
|
||||
|
||||
@@ -21,7 +21,7 @@ module.exports = function(context, options) {
|
||||
},
|
||||
};
|
||||
},
|
||||
/*configurePostCss(postcssOptions) {
|
||||
configurePostCss(postcssOptions) {
|
||||
postcssOptions.plugins.push(
|
||||
require('postcss-import'),
|
||||
require('tailwindcss'),
|
||||
@@ -33,6 +33,6 @@ module.exports = function(context, options) {
|
||||
})
|
||||
);
|
||||
return postcssOptions;
|
||||
},*/
|
||||
},
|
||||
};
|
||||
};
|
||||
@@ -2,8 +2,14 @@ module.exports = {
|
||||
prefix: '',
|
||||
important: false,
|
||||
separator: ':',
|
||||
purge: false,
|
||||
//purge: ['./docs/**/*.jsx', './docs/**/*.mdx'],
|
||||
purge: {
|
||||
content: [
|
||||
'./docs/**/*.jsx',
|
||||
'./docs/**/*.mdx',
|
||||
'./node_modules/@ohif/ui/src/**/*.{js,jsx,css}',
|
||||
'../../node_modules/@ohif/ui/src/**/*.{js,jsx,css}',
|
||||
],
|
||||
},
|
||||
theme: {
|
||||
screens: {
|
||||
sm: '640px',
|
||||
@@ -749,7 +755,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'],
|
||||
|
||||
Reference in new issue
Block a user