Passed
Pull Request — master (#135)
by Mathieu
01:50
created

client/postcss.config.js   A

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 15
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 8
mnd 1
bc 1
fnc 1
dl 0
loc 15
rs 10
bpm 1
cpm 2
noi 0
c 0
b 0
f 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