Total Complexity | 2 |
Complexity/F | 2 |
Lines of Code | 15 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | const tailwindcss = require('tailwindcss'); |
||
2 | |||
3 | const purgecss = require('@fullhuman/postcss-purgecss')({ |
||
4 | content: ['./src/**/*.svelte'], |
||
5 | defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || [] |
||
6 | }); |
||
7 | |||
8 | module.exports = { |
||
9 | plugins: [ |
||
10 | tailwindcss('./tailwind.config.js'), |
||
11 | |||
12 | // only needed if you want to purge |
||
13 | ...(process.env.NODE_ENV === 'production' ? [purgecss] : []) |
||
14 | ] |
||
15 | }; |
||
16 |