Skip to content

Commit

Permalink
working files for hanging in broswer
Browse files Browse the repository at this point in the history
  • Loading branch information
oceanbluesky committed Dec 13, 2024
1 parent 10fb97b commit 5397000
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion __about_these_files.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ the 'npm commands' are in package.json (if files are moved update the package.js

* this needs 'npm install concurrently --save-dev' to ensure CSS watching and dx server run simultaneously

* this alos needs 'cargo add manganis' to be run in the termiinal to ensure Dioxus can link the compoiled tailwind.css file from the index.html file Dioxus compiles
* this also needs 'cargo add manganis' to be run in the termiinal to ensure Dioxus can link the compoiled tailwind.css file from the index.html file Dioxus compiles
( src/styles/input.css is used to create the output css file dist/assets/styles/tailwind.css)

* 'tailwind.config.js' is used to tell tailwind where to find files to compile
Expand Down
2 changes: 1 addition & 1 deletion dist/assets/styles/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
--tw-contain-style: ;
}

/* ! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com */
/* ! tailwindcss v3.4.16 | MIT License | https://tailwindcss.com */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
Expand Down
4 changes: 2 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<body>
<div id="main"></div>
<script type="module">
import init from "/./assets/dioxus/name.js";
init("/./assets/dioxus/name_bg.wasm").then(wasm => {
import init from "./assets/dioxus/name.js";
init("./assets/dioxus/name_bg.wasm").then(wasm => {
if (wasm.__wbindgen_start == undefined) {
wasm.main();
}
Expand Down
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"dependencies": {
"concurrently": "^9.1.0"
},
"scripts": {
"build:css": "npx tailwindcss -i src/styles/input.css -o dist/assets/styles/tailwind.css --watch",
"serve": "concurrently \"npm run build:css\" \"dx build && dx serve\""
},
"devDependencies": {
"tailwindcss": "^3.4.16"
}
}

0 comments on commit 5397000

Please sign in to comment.