mirror of
https://github.com/p-stream/p-stream.git
synced 2026-01-11 20:10:32 +00:00
Revert "Merge pull request #71 from afyef/feat/skip-source-button"
This reverts commitd1356405d2, reversing changes made to85421a881d.
This commit is contained in:
parent
bf359916b6
commit
e49eb634fe
2 changed files with 0 additions and 20 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -28,4 +28,3 @@ package-lock.json
|
||||||
|
|
||||||
# config
|
# config
|
||||||
.env
|
.env
|
||||||
local-libs/
|
|
||||||
|
|
|
||||||
|
|
@ -25,17 +25,6 @@ export default defineConfig(({ mode }) => {
|
||||||
const env = loadEnv(mode, process.cwd());
|
const env = loadEnv(mode, process.cwd());
|
||||||
return {
|
return {
|
||||||
base: env.VITE_BASE_URL || "/",
|
base: env.VITE_BASE_URL || "/",
|
||||||
assetsInclude: ['**/*.wasm'],
|
|
||||||
server: {
|
|
||||||
fs: {
|
|
||||||
allow: [
|
|
||||||
// Default: allow serving files from project root
|
|
||||||
path.resolve(__dirname),
|
|
||||||
// Allow serving from the linked providers directory
|
|
||||||
path.resolve(__dirname, '../providers/@p-stream/providers'),
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
plugins: [
|
plugins: [
|
||||||
million.vite({ auto: true, mute: true }),
|
million.vite({ auto: true, mute: true }),
|
||||||
handlebars({
|
handlebars({
|
||||||
|
|
@ -134,14 +123,6 @@ export default defineConfig(({ mode }) => {
|
||||||
|
|
||||||
build: {
|
build: {
|
||||||
sourcemap: mode !== "production",
|
sourcemap: mode !== "production",
|
||||||
assetsInlineLimit: (filePath: string) => {
|
|
||||||
// Never inline WASM files
|
|
||||||
if (filePath.endsWith('.wasm')) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
// Use default 4KB limit for other assets
|
|
||||||
return undefined;
|
|
||||||
},
|
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
output: {
|
output: {
|
||||||
manualChunks(id: string) {
|
manualChunks(id: string) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue