wayBetter for X
This commit is contained in:
commit
2f1e35ba20
720 changed files with 147465 additions and 0 deletions
28
apps/web/vite.config.ts
Normal file
28
apps/web/vite.config.ts
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
import { resolve } from 'node:path';
|
||||
import { defineConfig } from 'vite';
|
||||
import { storePages } from './store-pages';
|
||||
|
||||
// Pages: the wayBetter home (/), the wayBetter for X page (/x/), the Store (/store/, /store/submit/
|
||||
// and one page per item, which the storePages plugin adds to the inputs), wayBetter for X's galleries
|
||||
// (/themes/, /plugins/) and the 404 page. Everything about the Store (cards, item pages, every page's
|
||||
// meta tags, sitemap.xml, robots.txt) is generated from public/store/catalog.json at build time.
|
||||
// Relative base so the build also works when mounted under a path prefix.
|
||||
export default defineConfig({
|
||||
base: './',
|
||||
plugins: [storePages(__dirname)],
|
||||
build: {
|
||||
target: ['es2022'],
|
||||
sourcemap: false,
|
||||
rollupOptions: {
|
||||
input: {
|
||||
home: resolve(__dirname, 'index.html'),
|
||||
x: resolve(__dirname, 'x/index.html'),
|
||||
themes: resolve(__dirname, 'themes/index.html'),
|
||||
plugins: resolve(__dirname, 'plugins/index.html'),
|
||||
store: resolve(__dirname, 'store/index.html'),
|
||||
submit: resolve(__dirname, 'store/submit/index.html'),
|
||||
notfound: resolve(__dirname, '404.html'),
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue