The upstream project name is gone from code, assets, docs and build
output: brand strings, domains (replypier.site and its app/api/docs/help
subdomains), env prefixes, image and network names, the widget's public
JS API (window.ReplyPier, replypierId/BaseUrl/Config/Token), CSS tokens
(--rp-*), file and directory names, and the WordPress plugin package.
- widget loader is now webclient/replypier.min.js; both bundles rebuilt
from source (backend/assets/widget.{js,css}, frontend/public/webclient)
- NOTICE, llms.txt, CONTRIBUTING, HELP_CENTER_INFRA and config.dev.js
rewritten rather than string-swapped; the demo config no longer ships
the previous vendor's Firebase/Razorpay/Google keys
- new migration replypier_ai_model_001 adds REPLYPIER to the managed
AIModelType and rewrites pre-rename rows
- local compose project, database, role and volume renamed; LOCAL_DEPLOY
documents carrying the old local data over
44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import { resolve } from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
vue({
|
|
template: {
|
|
compilerOptions: {
|
|
// Treat all tags starting with 's-' as custom elements (Polaris web components)
|
|
isCustomElement: (tag) => tag.startsWith('s-')
|
|
}
|
|
}
|
|
})
|
|
],
|
|
build: {
|
|
lib: {
|
|
entry: resolve(__dirname, 'src/webclient/widget.ts'),
|
|
name: 'ReplyPierWidget',
|
|
fileName: 'widget',
|
|
formats: ['es'],
|
|
},
|
|
outDir: '/app/backend-assets',
|
|
emptyOutDir: false,
|
|
rollupOptions: {
|
|
output: {
|
|
format: 'es',
|
|
entryFileNames: 'widget.js',
|
|
assetFileNames: (assetInfo) => {
|
|
if (assetInfo.name === 'style.css') {
|
|
return 'widget.css'
|
|
}
|
|
// Place other assets in a subdirectory that we can ignore or clean up later
|
|
return 'unused/[name]-[hash][extname]'
|
|
},
|
|
chunkFileNames: 'unused/[name]-[hash].js',
|
|
manualChunks: undefined, // Disable code splitting
|
|
},
|
|
},
|
|
},
|
|
define: {
|
|
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production'),
|
|
},
|
|
})
|