Skip to content

Commit

Permalink
disable sourcemaps
Browse files Browse the repository at this point in the history
  • Loading branch information
HexaField committed Aug 23, 2024
1 parent 445a643 commit ff5063d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ https://ir-engine.github.io/ir-static-build-template/

## Deploy to github pages

- Enable github pages for the repo
- Set STATIC_BUILD_ENABLED to `true` in repo secrets
- Set GITHUB_PAGES to `true` in repo secrets
- Set STATIC_BUILD_HOST to your github pages url in repo secrets without https:// (example: `username.github.io/repo-name`)
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import path from 'path'
import { defineConfig, UserConfig } from 'vite'
import manifestJson from './manifest.json'

export default defineConfig(async () => {
export default defineConfig(async ({ command }) => {
dotenv.config({
path: packageRoot.path + '/.env.local'
})
Expand Down Expand Up @@ -81,7 +81,7 @@ export default defineConfig(async () => {
plugins: [],
build: {
target: 'esnext',
sourcemap: 'inline',
sourcemap: process.env.VITE_SOURCEMAPS === 'true' ? true : false,
minify: 'esbuild',
dynamicImportVarsOptions: {
warnOnError: true
Expand Down

0 comments on commit ff5063d

Please sign in to comment.