mirror of
https://github.com/taigrr/wails.git
synced 2026-04-13 18:38:11 -07:00
[v2] Fix default templates README
This commit is contained in:
@@ -5,20 +5,18 @@
|
||||
This is a basic Svelte template, using rollup to bundle the assets into a single JS file.
|
||||
Rollup is configured to do the following:
|
||||
|
||||
- Convert imported images to base64 strings
|
||||
- Convert `url()` in `@font-face` declarations to base64 strings
|
||||
- Bundle all css into the JS bundle
|
||||
- Copy `index.html` from `frontend/src/` to `frontend/dist/`
|
||||
- Convert imported images to base64 strings
|
||||
- Convert `url()` in `@font-face` declarations to base64 strings
|
||||
- Bundle all css into the JS bundle
|
||||
- Copy `index.html` from `frontend/src/` to `frontend/dist/`
|
||||
|
||||
Clicking the button will call the backend
|
||||
|
||||
## Building
|
||||
|
||||
To build this project in debug mode, use `wails build`. For production, use `wails build -production`.
|
||||
To generate a platform native package, add the `-package` flag.
|
||||
Clicking the button will call the backend.
|
||||
|
||||
## Live Development
|
||||
|
||||
To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend`
|
||||
directory and run `npm run dev`. The frontend dev server will run on http://localhost:5000. Connect to this
|
||||
in your browser and connect to your application.
|
||||
To run in live development mode, run `wails dev` in the project directory. The frontend dev server will run
|
||||
on http://localhost:34115. Open this in your browser to connect to your application.
|
||||
|
||||
## Building
|
||||
|
||||
For a production build, use `wails build`.
|
||||
|
||||
@@ -6,9 +6,8 @@ This template uses vanilla JS / HTML and CSS.
|
||||
|
||||
## Live Development
|
||||
|
||||
To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend`
|
||||
directory and run `npm run dev`. The frontend dev server will run on http://localhost:5000. Connect to this in your
|
||||
browser and connect to your application.
|
||||
To run in live development mode, run `wails dev` in the project directory. The frontend dev server will run
|
||||
on http://localhost:34115. Open this in your browser to connect to your application.
|
||||
|
||||
## Building
|
||||
|
||||
|
||||
Reference in New Issue
Block a user