Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "yew-wasm-pack-template"
version = "0.2.0"
authors = ["Yew Maintainers <maintainers@yew.rs"]
edition = "2018"
name = "yew-wasm-pack-tw-template"
version = "0.1.0"
authors = ["Konstantin <mail@vomkonstant.in"]
edition = "2021"

[lib]
crate-type = ["cdylib", "rlib"]
Expand Down
2 changes: 1 addition & 1 deletion LICENSE_MIT
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2018 {{authors}}
Copyright (c) 2022 {{authors}}

Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
## About

This template shows how to create a web app using Yew and wasm-pack.
This template shows how to create a web app using Yew, wasm-pack and tailwindCSS.

It is a fork of [this repo.](https://github.com/yewstack/yew-wasm-pack-template)

There is a blog post with more detailed information [here.](http://blog.vomkonstant.in/blog/tailwind-with-webassembly-yew)

## 🚴 Usage

Expand All @@ -22,10 +26,9 @@ yarn run build
yarn run dev
```


## 🔋 Batteries Included

* [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) for communicating
- [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) for communicating
between WebAssembly and JavaScript.
* [`wee_alloc`](https://github.com/rustwasm/wee_alloc), an allocator optimized
- [`wee_alloc`](https://github.com/rustwasm/wee_alloc), an allocator optimized
for small code size.
4 changes: 2 additions & 2 deletions bootstrap.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import './style.scss';
import "./output.css";

import("./pkg").then(module => {
import("./pkg").then((module) => {
module.run_app();
});
Loading