IronRDP/web-client/iron-svelte-client/svelte.config.js
Benoît Cortier 710a51f24a
refactor: re-organize workspace (#101)
- Remove Tauri client.

  It was useful when initially prototyping the Web Component, but now
  it’s more of a maintenance burden. It’s notably not convenient to
  check in CI. Since we now have another native alternative that does
  not require any GPU (`ironrdp-client`), it’s probably a good time to
  part ways.

- Move wasm package into the workspace.

- Move Rust crates into a `crates` subfolder.

- Introduce `xtask` crate for free-form automation.
2023-03-29 19:09:15 -04:00

24 lines
729 B
JavaScript

import adapter from '@sveltejs/adapter-static';
import preprocess from 'svelte-preprocess';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess(),
kit: {
adapter: adapter({
// default options are shown. On some platforms
// these options are set automatically — see below
pages: process.env.MODE === "tauri" ? "build/tauri" : 'build/browser',
assets: process.env.MODE === "tauri" ? "build/tauri" : 'build/browser',
fallback: null,
precompress: false,
strict: true
})
// appDir: process.env.MODE === "tauri" ? "tauri" : "_app",
}
};
export default config;