vike-lite 1.1.4 → 1.2.0

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.
Files changed (2) hide show
  1. package/dist/vite.mjs +8 -1
  2. package/package.json +1 -1
package/dist/vite.mjs CHANGED
@@ -96,13 +96,18 @@ function routerPlugin({ pagesDir = "pages", serverEntry = "server/index", apiPre
96
96
  config(config) {
97
97
  outDir = config.build?.outDir ?? "dist";
98
98
  const emptyOutDir = config.build?.emptyOutDir;
99
+ const minify = config.build?.minify ?? true;
100
+ const cssMinify = config.build?.cssMinify ?? true;
101
+ const sourcemap = config.build?.sourcemap;
99
102
  return {
100
103
  appType: "custom",
101
104
  environments: {
102
105
  client: { build: {
103
106
  outDir: path.join(outDir, "client"),
104
107
  emptyOutDir: emptyOutDir ?? true,
105
- cssMinify: true,
108
+ minify,
109
+ cssMinify,
110
+ sourcemap,
106
111
  manifest: true,
107
112
  rolldownOptions: {
108
113
  input: virtualEntryClientId,
@@ -121,6 +126,8 @@ function routerPlugin({ pagesDir = "pages", serverEntry = "server/index", apiPre
121
126
  target: "esnext",
122
127
  outDir: path.join(outDir, "server"),
123
128
  emptyOutDir: emptyOutDir ?? true,
129
+ minify,
130
+ sourcemap,
124
131
  rolldownOptions: {
125
132
  input: virtualEntryServerId,
126
133
  output: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike-lite",
3
- "version": "1.1.4",
3
+ "version": "1.2.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.mjs",