Skip to content

Commit bd9420d

Browse files
committed
Update dependencies
1 parent 99c45bc commit bd9420d

File tree

3 files changed

+16
-24
lines changed

3 files changed

+16
-24
lines changed

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"start": "sirv public"
88
},
99
"devDependencies": {
10-
"@fullhuman/postcss-purgecss": "^2.2.0",
11-
"postcss": "^7.0.30",
10+
"postcss": "^8.0.9",
1211
"postcss-load-config": "^2.1.0",
1312
"@rollup/plugin-commonjs": "^16.0.0",
1413
"@rollup/plugin-node-resolve": "^10.0.0",
@@ -18,8 +17,8 @@
1817
"rollup-plugin-svelte": "^7.0.0",
1918
"rollup-plugin-terser": "^7.0.0",
2019
"svelte": "^3.0.0",
21-
"svelte-preprocess": "^3.7.4",
22-
"tailwindcss": "^1.4.6"
20+
"svelte-preprocess": "^4.3.0",
21+
"tailwindcss": "^1.8.10"
2322
},
2423
"dependencies": {
2524
"sirv-cli": "^1.0.0"

postcss.config.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
const purgecss = require('@fullhuman/postcss-purgecss')({
2-
content: [
3-
'./**/**/*.html',
4-
'./**/**/*.svelte'
5-
],
6-
7-
whitelistPatterns: [/svelte-/],
8-
9-
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
10-
});
11-
12-
const production = !process.env.ROLLUP_WATCH
13-
141
module.exports = {
15-
plugins: [
16-
require('tailwindcss'),
17-
...(production ? [purgecss] : [])
18-
]
2+
plugins: [require('tailwindcss')],
193
};

tailwind.config.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
module.exports = {
2+
purge: {
3+
mode: 'all',
4+
content: ['./**/**/*.html', './**/**/*.svelte'],
5+
6+
options: {
7+
whitelistPatterns: [/svelte-/],
8+
},
9+
},
10+
211
theme: {
3-
extend: {}
12+
extend: {},
413
},
514
variants: {},
6-
plugins: []
7-
}
15+
plugins: [],
16+
};

0 commit comments

Comments
 (0)