@ca-plant-list/ca-plant-list 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { optimize } from "svgo";
1
+ import { optimize } from "svgo-ll";
2
2
 
3
3
  import { Config } from "./config.js";
4
4
  import { Files } from "./files.js";
@@ -46,29 +46,7 @@ class SiteGenerator {
46
46
  const srcFile = Files.join(srcDir, entry);
47
47
  const srcSVG = Files.read(srcFile);
48
48
  const result = optimize(srcSVG, {
49
- plugins: [
50
- {
51
- name: "preset-default",
52
- params: {
53
- overrides: {
54
- // minifyStyles changes font-weight: normal to 400, which keeps it from being removed as a default.
55
- // Disable it here and run it last.
56
- minifyStyles: false,
57
- removeViewBox: false,
58
- },
59
- },
60
- },
61
- "convertStyleToAttrs",
62
- {
63
- name: "removeAttrs",
64
- params: {
65
- attrs: "(style)",
66
- },
67
- },
68
- "removeDimensions",
69
- "minifyStyles",
70
- ],
71
- multipass: true,
49
+ plugins: ["preset-default", "removeDimensions"],
72
50
  });
73
51
  Files.write(Files.join(outputDir, entry), result.data);
74
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ca-plant-list/ca-plant-list",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Tools to create Jekyll files for a website listing plants in an area of California.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -24,7 +24,7 @@
24
24
  "image-size": "^1.1.1",
25
25
  "markdown-it": "^13.0.1",
26
26
  "sharp": "^0.32.1",
27
- "svgo": "^3.0.3",
27
+ "svgo-ll": "^5.2.0",
28
28
  "unzipper": "^0.10.11"
29
29
  },
30
30
  "devDependencies": {