dh-remixer-sdk 0.0.31 → 0.0.32-0c8cd9f
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
CHANGED
|
@@ -2,33 +2,14 @@ import { defineConfig, Plugin } from "vite";
|
|
|
2
2
|
import react from "@vitejs/plugin-react";
|
|
3
3
|
import tailwindcss from "tailwindcss";
|
|
4
4
|
import autoprefixer from "autoprefixer";
|
|
5
|
-
import tailwindConfig from "./tailwind.config.
|
|
5
|
+
import tailwindConfig from "./tailwind.config.json";
|
|
6
6
|
import path from "path";
|
|
7
|
-
import { execSync } from "node:child_process";
|
|
8
7
|
|
|
9
8
|
const PREVIEW_DOMAINS = [
|
|
10
9
|
'.remixer.ai',
|
|
11
10
|
'.dreamhosters.ai',
|
|
12
11
|
];
|
|
13
12
|
|
|
14
|
-
function ssgPostbuild(): Plugin {
|
|
15
|
-
let config;
|
|
16
|
-
|
|
17
|
-
return {
|
|
18
|
-
name: "ssg-postbuild",
|
|
19
|
-
|
|
20
|
-
configResolved(resolvedConfig) {
|
|
21
|
-
config = resolvedConfig;
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
writeBundle() {
|
|
25
|
-
execSync(`BUILD_DIR=${config.build.outDir} npx ssg-helmet`, {
|
|
26
|
-
stdio: "inherit",
|
|
27
|
-
});
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
13
|
function injectRemixerMetaTagPlugin(): Plugin {
|
|
33
14
|
return {
|
|
34
15
|
name: "vite-plugin-inject-remixer-meta-tag",
|
|
@@ -202,7 +183,6 @@ export default defineConfig({
|
|
|
202
183
|
tailwindProdPlugin(),
|
|
203
184
|
react(),
|
|
204
185
|
injectRemixerMetaTagPlugin(),
|
|
205
|
-
// ssgPostbuild()
|
|
206
186
|
],
|
|
207
187
|
resolve: {
|
|
208
188
|
alias: {
|