Skip to content

Commit

Permalink
Fix frontend dev reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
achhabra2 committed Jan 12, 2022
1 parent dfb17d6 commit 485d484
Show file tree
Hide file tree
Showing 5 changed files with 4,149 additions and 10 deletions.
6 changes: 1 addition & 5 deletions app.go
Expand Up @@ -2,7 +2,6 @@ package main

import (
"context"
_ "embed"
"errors"
"fmt"
"io"
Expand All @@ -25,9 +24,6 @@ import (
"github.com/klauspost/compress/zip"
)

//go:embed build/windows/icons/icon_150.png
var notificationIcon []byte

// App application struct
type App struct {
ctx context.Context
Expand Down Expand Up @@ -82,7 +78,7 @@ func (b *App) domReady(ctx context.Context) {
runtime.LogInfo(b.ctx, "App is installed from Mac App Store, reset download directory")
b.UserPrefs.DownloadsDirectory = defaultDownloadPath
b.c.DownloadPath = defaultDownloadPath
settings.SaveUserSettings(b.UserPrefs)
b.PersistUserSettings()
}
}
}
Expand Down
4,143 changes: 4,142 additions & 1 deletion frontend/dist/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion frontend/dist/bundle.js.map

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions frontend/rollup.config.js
Expand Up @@ -72,11 +72,14 @@ export default {

// In dev mode, call `npm run start` once
// the bundle has been generated
!production && serve(),
// !production && serve(),

// Watch the `dist` directory and refresh the
// browser on changes when not in production
!production && livereload('dist'),
!production && livereload({
watch: 'dist',
inject: false
}),

// If we're building for production (npm run build
// instead of npm run dev), minify
Expand Down
1 change: 0 additions & 1 deletion wails.json
Expand Up @@ -3,7 +3,6 @@
"assetdir": "frontend/dist",
"frontend:build": "npm run build",
"frontend:install": "npm install",
"frontend:dev": "",
"wailsjsdir": "./frontend",
"version": "2",
"Path": "",
Expand Down

0 comments on commit 485d484

Please sign in to comment.