Skip to content

Commit

Permalink
� change replace options
Browse files Browse the repository at this point in the history
  • Loading branch information
olgam4 committed Jun 15, 2022
1 parent f735674 commit aae9df2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ import { VitePWA } from 'vite-plugin-pwa'
import type { VitePWAOptions } from 'vite-plugin-pwa'
import AutoImport from 'unplugin-auto-import/vite'
import Unocss from 'unocss/vite'
import replace from '@rollup/plugin-replace'
import replace, {RollupReplaceOptions} from '@rollup/plugin-replace'

const replaceOptions: Partial<RollupReplaceOptions> = {
__DATE__: new Date().toISOString(),
preventAssignment: true,
}

const replaceOptions = { __DATE__: new Date().toISOString() }
const pwaOptions: Partial<VitePWAOptions> = {
base: '/',
includeAssets: ['favicon.ico', 'robots.txt'],
Expand Down Expand Up @@ -65,7 +69,6 @@ export default defineConfig({
replace(replaceOptions),
],
build: {
sourcemap: true,
target: 'esnext',
polyfillDynamicImport: false,
},
Expand Down

1 comment on commit aae9df2

@vercel
Copy link

@vercel vercel bot commented on aae9df2 Jun 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

bat – ./

bat.glo.quebec
bat-olgam4.vercel.app
bat-brown.vercel.app
bat-git-main-olgam4.vercel.app

Please sign in to comment.