diff options
author | Leonardo Faria <leonardofaria@gmail.com> | 2020-11-28 06:06:29 +0300 |
---|---|---|
committer | Leonardo Faria <leonardofaria@gmail.com> | 2020-11-28 06:06:29 +0300 |
commit | 3931385308dd45733d3c962b1e74705cb92d10eb (patch) | |
tree | 622c3aae8e12991726f76e2e8f2d8342fdf1b70e /assets | |
parent | b0139f2506774c5a85884bbf03ec3d5a9db2f7f9 (diff) |
Disable postcss-purgecss in favor of tailwindcss purge
Diffstat (limited to 'assets')
-rw-r--r-- | assets/css/dev/postcss.config.js | 30 | ||||
-rw-r--r-- | assets/css/postcss.config.js | 30 | ||||
-rw-r--r-- | assets/css/tailwind.config.js | 10 |
3 files changed, 37 insertions, 33 deletions
diff --git a/assets/css/dev/postcss.config.js b/assets/css/dev/postcss.config.js index f62884a..48e0498 100644 --- a/assets/css/dev/postcss.config.js +++ b/assets/css/dev/postcss.config.js @@ -8,21 +8,21 @@ module.exports = { require('tailwindcss')(themeDir + 'assets/css/tailwind.config.js'), // Configuration of purgecss for Tailwindcss // see https://tailwindcss.com/docs/controlling-file-size/#setting-up-purgecss - require('@fullhuman/postcss-purgecss')({ - // Specify the paths to all of the template files in your project - content: [ - themeDir + 'layouts/**/*.html', - themeDir + 'exampleSite/content/**/*.html', - 'layouts/**/*.html', - 'content/**/*.html', - 'content/**/*.md', - '**/*.md', - ], - // Include any special characters you're using in this regular expression - defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [], - fontFace: true, - whitelistPatternsChildren: [/article/] - }), + // require('@fullhuman/postcss-purgecss')({ + // // Specify the paths to all of the template files in your project + // content: [ + // themeDir + 'layouts/**/*.html', + // themeDir + 'exampleSite/content/**/*.html', + // 'layouts/**/*.html', + // 'content/**/*.html', + // 'content/**/*.md', + // '**/*.md', + // ], + // // Include any special characters you're using in this regular expression + // defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [], + // fontFace: true, + // safelist: [/article/] + // }), require('autoprefixer')({ grid: true }), diff --git a/assets/css/postcss.config.js b/assets/css/postcss.config.js index 47f4e11..b51ea7f 100644 --- a/assets/css/postcss.config.js +++ b/assets/css/postcss.config.js @@ -8,21 +8,21 @@ module.exports = { require('tailwindcss')(themeDir + 'assets/css/tailwind.config.js'), // Configuration of purgecss for Tailwindcss // see https://tailwindcss.com/docs/controlling-file-size/#setting-up-purgecss - require('@fullhuman/postcss-purgecss')({ - // Specify the paths to all of the template files in your project - content: [ - themeDir + 'layouts/**/*.html', - themeDir + 'exampleSite/content/**/*.html', - 'layouts/**/*.html', - 'content/**/*.html', - 'content/**/*.md', - '**/*.md', - ], - // Include any special characters you're using in this regular expression - defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [], - fontFace: true, - whitelistPatternsChildren: [/article/] - }), + // require('@fullhuman/postcss-purgecss')({ + // // Specify the paths to all of the template files in your project + // content: [ + // themeDir + 'layouts/**/*.html', + // themeDir + 'exampleSite/content/**/*.html', + // 'layouts/**/*.html', + // 'content/**/*.html', + // 'content/**/*.md', + // '**/*.md', + // ], + // // Include any special characters you're using in this regular expression + // defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [], + // fontFace: true, + // safelist: [/article/] + // }), require('autoprefixer')({ grid: true }), diff --git a/assets/css/tailwind.config.js b/assets/css/tailwind.config.js index ac6d7f2..a2eead4 100644 --- a/assets/css/tailwind.config.js +++ b/assets/css/tailwind.config.js @@ -1,4 +1,11 @@ module.exports = { + purge: { + content: [ + './layouts/**/*.html', + './content/**/*.md', + './content/**/*.html', + ], + }, theme: { fontFamily: { sans: [ @@ -38,7 +45,4 @@ module.exports = { plugins: [ require('@tailwindcss/ui'), ], - future: { - removeDeprecatedGapUtilities: true, - }, } |