create-lt-adventure 0.1.3 → 0.1.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-lt-adventure",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "A CLI tool to scaffold Foundry VTT modules",
5
5
  "keywords": [
6
6
  "foundry-vtt",
@@ -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
- 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();
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
  },