Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit 998c3a2

Browse files
author
TheComputerM
committed
feat: smaller bundles
1 parent 4392c49 commit 998c3a2

File tree

3 files changed

+695
-17
lines changed

3 files changed

+695
-17
lines changed

packages/svelte-materialify/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"glob": "^7.1.6",
5757
"jest": "^26.6.1",
5858
"postcss": "^8.1.3",
59+
"cssnano": "4.1.10",
5960
"rollup": "^2.32.1",
6061
"rollup-plugin-bundle-size": "^1.0.3",
6162
"rollup-plugin-svelte": "^6.1.0",

packages/svelte-materialify/preprocess.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ const processor = sveltePreprocess({
1212
scss: {
1313
includePaths: [path.join(BASE, 'theme')],
1414
},
15+
postcss: {
16+
plugins: [require('cssnano')()],
17+
},
1518
});
1619

1720
del.sync(['dist/**']);

0 commit comments

Comments
 (0)