mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-22 15:11:00 -06:00
BREAKING CHANGE: vite.config.js is no longer merged when devServer.viteConfig is provided
25 lines
665 B
JavaScript
25 lines
665 B
JavaScript
import { makeConfig } from '../frontend-shared/vite.config.mjs'
|
|
import Layouts from 'vite-plugin-vue-layouts'
|
|
import Pages from 'vite-plugin-pages'
|
|
import Copy from 'rollup-plugin-copy'
|
|
import Legacy from '@vitejs/plugin-legacy'
|
|
import { resolve } from 'path'
|
|
|
|
export default makeConfig({}, {
|
|
plugins: [
|
|
Layouts(),
|
|
Pages({ extensions: ['vue'] }),
|
|
Copy({
|
|
targets: [{
|
|
src: resolve(__dirname, '../frontend-shared/src/assets/logos/favicon.png'),
|
|
dest: 'dist',
|
|
}],
|
|
}),
|
|
Legacy({
|
|
targets: ['Chrome >= 64', 'Firefox >= 86', 'Edge >= 79'],
|
|
modernPolyfills: true,
|
|
renderLegacyChunks: false,
|
|
}),
|
|
],
|
|
})
|