1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-09 00:35:00 +00:00
mon-entreprise/site/vite-iframe-script.config.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
514 B
TypeScript
Raw Normal View History

2023-02-01 01:28:35 +01:00
import yaml from '@rollup/plugin-yaml'
import path from 'path'
2022-01-28 10:20:54 +01:00
import { defineConfig } from 'vite'
2023-02-01 01:28:35 +01:00
import { VitePWA } from 'vite-plugin-pwa'
2022-01-28 10:20:54 +01:00
export default defineConfig({
2023-02-01 01:28:35 +01:00
resolve: {
alias: [{ find: '@', replacement: path.resolve('./source') }],
},
2022-01-28 10:20:54 +01:00
build: {
lib: {
entry: './source/iframe-integration-script.js',
name: 'monEntrepriseIframe',
formats: ['iife'],
2022-06-27 10:20:36 +02:00
fileName: () => 'simulateur-iframe-integration.js',
2022-01-28 10:20:54 +01:00
},
emptyOutDir: false,
},
2023-02-01 01:28:35 +01:00
plugins: [yaml(), VitePWA({ disable: true })],
2022-01-28 10:20:54 +01:00
})