File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 21
21
command : install
22
22
args : wasm-pack
23
23
- name : Build package
24
- run : wasm-pack build --release --scope stranger6667 --target nodejs
24
+ run : wasm-pack build --release --target nodejs
25
+ working-directory : ./wasm
26
+ - name : Fix package name
27
+ # wasm-pack generates the package name from the crate name.
28
+ # Since the original Rust crate has this name (`css-inline`), the WASM crate has `css-inline-wasm` to
29
+ # avoid conflicts during the build. The easiest way to handle it is to rename it inside the package.json file.
30
+ run : sed -i 's/css-inline-wasm/css-inline/' pkg/package.json
25
31
working-directory : ./wasm
26
32
- run : npm config set '//registry.npmjs.org/:_authToken' "${NPM_AUTH_TOKEN}"
27
33
env :
Original file line number Diff line number Diff line change 2
2
3
3
## [ Unreleased]
4
4
5
+ ## [ 0.6.0] - 2020-11-02
6
+
5
7
### Changed
6
8
7
9
- Links to remote stylesheets are deduplicated now.
21
23
22
24
- Initial public release
23
25
24
- [ Unreleased ] : https://github.com/Stranger6667/css-inline/compare/wasm-v0.5.0...HEAD
26
+ [ Unreleased ] : https://github.com/Stranger6667/css-inline/compare/wasm-v0.6.0...HEAD
27
+ [ 0.6.0 ] : https://github.com/Stranger6667/css-inline/compare/wasm-v0.5.0...wasm-v0.6.0
25
28
[ 0.5.0 ] : https://github.com/Stranger6667/css-inline/compare/wasm-v0.4.1...wasm-v0.5.0
26
29
[ 0.4.1 ] : https://github.com/Stranger6667/css-inline/compare/wasm-v0.4.0...wasm-v0.4.1
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " css-inline-wasm"
3
- version = " 0.5 .0"
3
+ version = " 0.6 .0"
4
4
authors = [
" Dmitry Dygalo <[email protected] >" ]
5
5
edition = " 2018"
6
6
readme = " README.md"
Original file line number Diff line number Diff line change 5
5
A WASM package for inlining CSS into HTML documents.
6
6
7
7
``` typescript
8
- import { inline } from " css-inline-wasm " ;
8
+ import { inline } from " css-inline" ;
9
9
10
10
var inlined = inline (
11
11
" <html><head><title>Test</title><style>h1 { color:red; }</style></head><body><h1>Test</h1></body></html>" ,
You can’t perform that action at this time.
0 commit comments