mon-entreprise/site/vite-iframe-script.config.ts

21 lines
514 B
TypeScript
Raw Normal View History

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