defuss-astro 1.4.5 → 1.4.6

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.
package/dist/index.cjs CHANGED
@@ -63,8 +63,8 @@ const minifyAndWriteFile = async (cwd, filename, type) => {
63
63
  }
64
64
  };
65
65
  function index({
66
- disableSvgOptimization = false,
67
- disableCssOptimization = false,
66
+ enableSvgOptimization = false,
67
+ enableCssOptimization = false,
68
68
  include,
69
69
  exclude,
70
70
  devtools
@@ -115,7 +115,7 @@ function index({
115
115
  ]);
116
116
  if (htmlFiles.length === 0 && svgFiles.length === 0) return;
117
117
  const minifyAndWritePromises = [];
118
- if (!disableCssOptimization) {
118
+ if (enableCssOptimization) {
119
119
  logMessage(`\u26A1 Optimizing ${cssFiles.length} CSS stylesheets`);
120
120
  for (const filename of cssFiles) {
121
121
  minifyAndWritePromises.push(
@@ -123,7 +123,7 @@ function index({
123
123
  );
124
124
  }
125
125
  }
126
- if (!disableSvgOptimization) {
126
+ if (enableSvgOptimization) {
127
127
  logMessage(`\u26A1 Optimizing ${svgFiles.length} SVG vector graphics`);
128
128
  for (const filename of svgFiles) {
129
129
  minifyAndWritePromises.push(
package/dist/index.d.cts CHANGED
@@ -3,11 +3,11 @@ import { DefussVitePluginOptions } from 'defuss-vite';
3
3
 
4
4
  interface Options extends Pick<DefussVitePluginOptions, "exclude" | "include"> {
5
5
  devtools?: boolean;
6
- disableSvgOptimization?: boolean;
7
- disableCssOptimization?: boolean;
6
+ enableSvgOptimization?: boolean;
7
+ enableCssOptimization?: boolean;
8
8
  }
9
9
 
10
10
  declare const getContainerRenderer: () => ContainerRenderer;
11
- declare function export_default({ disableSvgOptimization, disableCssOptimization, include, exclude, devtools, }?: Options): AstroIntegration;
11
+ declare function export_default({ enableSvgOptimization, enableCssOptimization, include, exclude, devtools, }?: Options): AstroIntegration;
12
12
 
13
13
  export { export_default as default, getContainerRenderer };
package/dist/index.d.mts CHANGED
@@ -3,11 +3,11 @@ import { DefussVitePluginOptions } from 'defuss-vite';
3
3
 
4
4
  interface Options extends Pick<DefussVitePluginOptions, "exclude" | "include"> {
5
5
  devtools?: boolean;
6
- disableSvgOptimization?: boolean;
7
- disableCssOptimization?: boolean;
6
+ enableSvgOptimization?: boolean;
7
+ enableCssOptimization?: boolean;
8
8
  }
9
9
 
10
10
  declare const getContainerRenderer: () => ContainerRenderer;
11
- declare function export_default({ disableSvgOptimization, disableCssOptimization, include, exclude, devtools, }?: Options): AstroIntegration;
11
+ declare function export_default({ enableSvgOptimization, enableCssOptimization, include, exclude, devtools, }?: Options): AstroIntegration;
12
12
 
13
13
  export { export_default as default, getContainerRenderer };
package/dist/index.mjs CHANGED
@@ -59,8 +59,8 @@ const minifyAndWriteFile = async (cwd, filename, type) => {
59
59
  }
60
60
  };
61
61
  function index({
62
- disableSvgOptimization = false,
63
- disableCssOptimization = false,
62
+ enableSvgOptimization = false,
63
+ enableCssOptimization = false,
64
64
  include,
65
65
  exclude,
66
66
  devtools
@@ -111,7 +111,7 @@ function index({
111
111
  ]);
112
112
  if (htmlFiles.length === 0 && svgFiles.length === 0) return;
113
113
  const minifyAndWritePromises = [];
114
- if (!disableCssOptimization) {
114
+ if (enableCssOptimization) {
115
115
  logMessage(`\u26A1 Optimizing ${cssFiles.length} CSS stylesheets`);
116
116
  for (const filename of cssFiles) {
117
117
  minifyAndWritePromises.push(
@@ -119,7 +119,7 @@ function index({
119
119
  );
120
120
  }
121
121
  }
122
- if (!disableSvgOptimization) {
122
+ if (enableSvgOptimization) {
123
123
  logMessage(`\u26A1 Optimizing ${svgFiles.length} SVG vector graphics`);
124
124
  for (const filename of svgFiles) {
125
125
  minifyAndWritePromises.push(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "defuss-astro",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"