Skip to content

Add option to leave CSS file #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update: Readme with leaveCssFile
  • Loading branch information
tristyb committed Jan 16, 2019
commit 39cb00b98af942ad10e34057f70b3ef91e53f4ab
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ interface Config {
target: string
position?: 'before' | 'after'
removeTarget?: boolean
leaveCssFile?: boolean
}
}
```
Expand All @@ -83,6 +84,7 @@ replace?: {
target: string
position?: 'before' | 'after' // default is 'before'
removeTarget?: boolean // default is false
leaveCssFile?: boolean // default is false
}
```
A config for customizing the location of injection, default will add internal style sheet before the `</head>`
Expand All @@ -92,6 +94,8 @@ A target for adding the internal style sheet
Add internal style sheet `before`/`after` the `target`
#### removeTarget(optional)
if `true`, it will remove the `target` from the output HTML
#### leaveCssFile(optional)
if `true`, it will leave CSS files where they are when inlining

##### example
```html
Expand Down