Skip to content
Snippets Groups Projects
Select Git revision
  • 137154f25d1d42ad57cd64e0ed847bc86ed23315
  • master default protected
  • maj-readme
  • update-budget-msg-2022
  • share-with-metadata
  • explications-resultats-macros-PLF2022
  • plf_fix
  • benoit-cty-master-patch-87290
  • activate-plf-2021
  • stats
  • switch-plf
  • carto
  • adapt-matomo
  • js-to-ts
  • nbre-part-logic
  • add-nbre-part
  • 1.0.0
17 results

conditions-d-utilisation-openleximpact.tsx

Blame
  • svelte.config.js 1.05 KiB
    import node from "@sveltejs/adapter-node"
    import preprocess from "svelte-preprocess"
    
    /** @type {import('@sveltejs/kit').Config} */
    const config = {
      kit: {
        // By default, `npm run build` will create a standard Node app.
        // You can create optimized builds for different platforms by
        // specifying a different adapter
        adapter: node({
          precompress: true,
        }),
    
        // hydrate the <div id="svelte"> element in src/app.html
        target: "#svelte",
    
        vite: {
          build: {
            // Increase size of chunks to 3 MB, to be able to import
            // JSON files extracted from OpenFisca country package.
            chunkSizeWarningLimit: 3072,
          },
          optimizeDeps: {
            // See https://svelte-modals.mattjennings.io/
            // and https://github.com/sveltejs/vite-plugin-svelte/issues/124.
            exclude: ["svelte-modals"],
          },
        },
      },
    
      // Consult https://github.com/sveltejs/svelte-preprocess
      // for more information about preprocessors
      preprocess: [
        preprocess({
          postcss: true,
        }),
      ],
    }
    
    export default config