tauri package vuejs problem #2406
-
Hello everyone. I want to package a vuejs project with tauri. If both ‘distDir’ and ‘devPath’ are set to ‘../dist’, the app can be displayed normally after using ‘yarn tauri dev’. But if the'devPath' is set to "http://localhost:8080", the app cannot display the page after using'yarn tauri dev'. However, after starting with "npm run dev" in another command window, use'yarn tauri' After dev', the app can be used normally. In addition, regardless of the ‘devPath’ setting, the exe generated after using ‘yarn tauri build’ can display page information normally. May I ask what caused this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is by design. If you want HMR in your dev window, you need to start your development server. If you just point the |
Beta Was this translation helpful? Give feedback.
This is by design. If you want HMR in your dev window, you need to start your development server. If you just point the
devPath
at your dist folder, and change something in there, then that change will not propegate to the dev webview window. ThedistDir
value is used exclusively at build time.