wildpig 1.5.5 → 1.5.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/package.json +1 -1
- package/scripts/build.ts +1 -1
package/package.json
CHANGED
package/scripts/build.ts
CHANGED
|
@@ -14,7 +14,6 @@ const prebuild = async () => {
|
|
|
14
14
|
// 编译服务端入口文件
|
|
15
15
|
promises.push(viteBuild({
|
|
16
16
|
configFile: path.resolve(__dirname, "../../../vite.config.ts"),
|
|
17
|
-
|
|
18
17
|
build: {
|
|
19
18
|
rollupOptions:{
|
|
20
19
|
input: path.resolve(__dirname, "../entry/server.tsx"),
|
|
@@ -36,6 +35,7 @@ export const build = async () => {
|
|
|
36
35
|
entrypoints: [path.resolve(__dirname, "./prodServer.ts")],
|
|
37
36
|
compile: true,
|
|
38
37
|
outdir: "./dist",
|
|
38
|
+
external: ["*.css"],
|
|
39
39
|
define: {
|
|
40
40
|
"process.env.NODE_ENV": JSON.stringify("production"),
|
|
41
41
|
},
|