Skip to content

Commit 00de1e2

Browse files
committed
chore: build pages
1 parent c66c8b0 commit 00de1e2

File tree

10 files changed

+1297
-0
lines changed

10 files changed

+1297
-0
lines changed

docs/.nojekyll

Whitespace-only changes.

docs/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
css-inline.org

docs/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# css-inline
2+
3+
## @css-inline/css-inline-wasm
4+
5+
[<img alt="build status" src="https://img.shields.io/github/actions/workflow/status/Stranger6667/css-inline/build.yml?style=flat-square&labelColor=555555&logo=github" height="20">](https://github.com/Stranger6667/css-inline/actions/workflows/build.yml)
6+
[<img alt="npm" src="https://img.shields.io/npm/v/@css-inline/css-inline-wasm.svg?style=flat-square" height="20">](https://www.npmjs.com/package/@css-inline/css-inline-wasm)
7+
[<img alt="codecov.io" src="https://img.shields.io/codecov/c/gh/Stranger6667/css-inline?logo=codecov&style=flat-square&token=tOzvV4kDY0" height="20">](https://app.codecov.io/github/Stranger6667/css-inline)
8+
[<img alt="gitter" src="https://img.shields.io/gitter/room/Stranger6667/css-inline?style=flat-square" height="20">](https://gitter.im/Stranger6667/css-inline)
9+
10+
`css-inline` is a high-performance library for inlining CSS into HTML 'style' attributes.
11+
12+
This is the **WebAssembly** module for [`css-inline`](https://github.com/Stranger6667/css-inline)
13+
14+
## Playground
15+
16+
If you'd like to try `css-inline`, you can check the WebAssembly-powered [playground](https://css-inline.org/) to see the results instantly.
17+
18+
## Restrictions
19+
20+
WASM module currently lacks support for fetching stylesheets from network or filesystem.
21+
22+
## License
23+
24+
This project is licensed under the terms of the [MIT license](https://opensource.org/licenses/MIT).

docs/index.d.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Generated by dts-bundle-generator v9.5.1
2+
3+
/* tslint:disable */
4+
/* eslint-disable */
5+
export interface InlineOptions {
6+
inlineStyleTags?: boolean;
7+
keepStyleTags?: boolean;
8+
keepLinkTags?: boolean;
9+
keepAtRules?: boolean;
10+
minifyCss?: boolean;
11+
baseUrl?: string;
12+
loadRemoteStylesheets?: boolean;
13+
extraCss?: string;
14+
preallocateNodeCapacity?: number;
15+
}
16+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
17+
/**
18+
* Initialize Wasm module
19+
* @param module_or_path WebAssembly Module or .wasm url
20+
*
21+
*/
22+
export declare const initWasm: (module_or_path: Promise<InitInput> | InitInput) => Promise<void>;
23+
export declare function inline(html: string, options?: InlineOptions): string;
24+
export declare function inlineFragment(html: string, css: string, options?: InlineOptions): string;
25+
export declare function version(): string;
26+
27+
export {};

0 commit comments

Comments
 (0)