create-lt-adventure 0.1.3 → 0.1.5
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
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@foundryvtt/foundryvtt-cli": "^3.0.2",
|
|
16
16
|
"@types/jquery": "^3.5.33",
|
|
17
17
|
"dotenv": "^17.2.3",
|
|
18
|
-
"foundryvtt-sync": "
|
|
18
|
+
"foundryvtt-sync": "^2.5.0",
|
|
19
19
|
"kolorist": "^1.8.0",
|
|
20
20
|
"postcss-preset-env": "^10.6.0",
|
|
21
21
|
"postcss-replace": "^2.0.1",
|
|
@@ -28,4 +28,4 @@
|
|
|
28
28
|
"last 2 Firefox versions",
|
|
29
29
|
"last 2 Edge versions"
|
|
30
30
|
]
|
|
31
|
-
}
|
|
31
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Plugin, UserConfig } from "vite";
|
|
2
2
|
import fs from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import vttSync from "foundryvtt-sync";
|
|
4
|
+
import vttSync from "foundryvtt-sync/vite";
|
|
5
5
|
import postcssPresetEnv from "postcss-preset-env";
|
|
6
6
|
import PostCSSReplace from "postcss-replace";
|
|
7
7
|
import { defineConfig } from "vite";
|
|
@@ -114,13 +114,13 @@ export default defineConfig(({ mode: _mode }) => {
|
|
|
114
114
|
apply: 'serve',
|
|
115
115
|
configureServer(server) {
|
|
116
116
|
server.middlewares.use((req, res, next) => {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
117
|
+
const cssPath = `/${PACKAGE_ID}/dist/${moduleJSON.id}.css`;
|
|
118
|
+
if (req.url === cssPath) {
|
|
119
|
+
res.setHeader('Content-Type', 'text/css');
|
|
120
|
+
res.end('');
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
next();
|
|
124
124
|
});
|
|
125
125
|
},
|
|
126
126
|
},
|