fix(tailwind): Ensure tailwind properly purges unused utility classes (#2485)

This commit is contained in:
Erik Ziegler authored and GitHub committed 2021-07-26 13:22:25 +02:00
1 parent 44e935f209
commit 3220af737c
33 files changed
+1028 -243

No files matched your search

@@ -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}
+2 -2
View File
@@ -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;
},*/
},
};
};
+9 -3
View File
@@ -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'],