-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is the minimal viable product for inline-scss. TODO: - Allow for SASS & SCSS to be compiled & inlined - Fix things like @charset (which may not appear in a style tag) - update docs - amend changelog - Bump version - git tag
- Loading branch information
1 parent
b9c6f4f
commit e7bdf5d
Showing
6 changed files
with
82 additions
and
44 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ authors = ["Anthony Dodd <[email protected]>"] | |
edition = "2018" | ||
|
||
[dependencies] | ||
console_error_panic_hook = "0.1.6" | ||
console_error_panic_hook = "0.1.6" | ||
wasm-bindgen = "=0.2.70" # This is pinned primarily for CI stability. | ||
wee_alloc = "0.4.5" | ||
ybc = "0.1.4" | ||
wee_alloc = "0.4.5" | ||
ybc = "0.1.4" | ||
yew = "0.17.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"/> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<title>Trunk | Yew | YBC</title> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"/> | ||
<link | ||
rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css" | ||
/> | ||
|
||
<link data-trunk rel="scss" href="src/index.scss"/> | ||
<link data-trunk rel="css" href="src/app.css"/> | ||
<link data-trunk rel="icon" href="src/yew.svg"/> | ||
<link data-trunk rel="copy-file" href="src/yew.svg"/> | ||
<link data-trunk rel="inline" type="css" href="src/inline-css.css"/> | ||
<base data-trunk-public-url/> | ||
</head> | ||
<body> | ||
<link data-trunk rel="rust" href="Cargo.toml" data-bin="yew-example"/> | ||
</body> | ||
<link data-trunk rel="scss" href="src/index.scss" /> | ||
<link data-trunk rel="css" href="src/app.css" /> | ||
<link data-trunk rel="icon" href="src/yew.svg" /> | ||
<link data-trunk rel="copy-file" href="src/yew.svg" /> | ||
<link data-trunk rel="inline" type="css" href="src/inline-css.css" /> | ||
<link data-trunk rel="inline-scss" href="src/inline-scss.scss" /> | ||
<base data-trunk-public-url /> | ||
</head> | ||
<body> | ||
<link data-trunk rel="rust" href="Cargo.toml" data-bin="yew-example" /> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.trunk_yew_example_fancy_green { | ||
$nice_color: green; | ||
background-color: $nice_color; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters