mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 06:37:10 -04:00
Non working hmr
This commit is contained in:
parent
70092c1cb7
commit
d522de17e6
20 changed files with 2621 additions and 1185 deletions
|
@ -1,10 +1,18 @@
|
|||
// vite.config.js
|
||||
import { resolve } from 'path'
|
||||
import { defineConfig } from 'vite'
|
||||
import vitePluginRequire from 'vite-plugin-require';
|
||||
import { viteCommonjs } from '@originjs/vite-plugin-commonjs'
|
||||
|
||||
export default defineConfig({
|
||||
base: '/views/',
|
||||
base: '/views/',
|
||||
plugins: [
|
||||
viteCommonjs(),
|
||||
],
|
||||
build: {
|
||||
commonjsOptions:{
|
||||
transformMixedEsModules: true,
|
||||
},
|
||||
outDir: resolve(__dirname, '../src/static/oidc'),
|
||||
rollupOptions: {
|
||||
input: {
|
||||
|
@ -14,4 +22,31 @@ export default defineConfig({
|
|||
},
|
||||
emptyOutDir: true,
|
||||
},
|
||||
server:{
|
||||
proxy:{
|
||||
'/static':{
|
||||
target: 'http://localhost:9001',
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
},
|
||||
'/views/manifest.json':{
|
||||
target: 'http://localhost:9001',
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
rewrite: (path) => path.replace(/^\/views/, ''),
|
||||
},
|
||||
'/locales.json':{
|
||||
target: 'http://localhost:9001',
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
rewrite: (path) => path.replace(/^\/views/, ''),
|
||||
},
|
||||
'/locales':{
|
||||
target: 'http://localhost:9001',
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
rewrite: (path) => path.replace(/^\/views/, ''),
|
||||
},
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue