Skip to content

Commit

Permalink
feat: add option cssUrl, inline css url:() to data: URIs (#345)
Browse files Browse the repository at this point in the history
Closes #263
  • Loading branch information
alan-agius4 authored and dherges committed Dec 9, 2017
1 parent cd713c1 commit 1c71f24
Show file tree
Hide file tree
Showing 16 changed files with 188 additions and 291 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Create one `package.json` per npm package, run _ng-packagr_ for each!
- :elephant: Runs [less](http://lesscss.org/#getting-started) preprocessor
- :snake: Runs [Stylus](http://stylus-lang.com) preprocessor, resolves relative paths relative to ng-package.json
- :monkey: Adds vendor-specific prefixes w/ [autoprefixer](https://github.com/postcss/autoprefixer#autoprefixer-) and [browserslist](https://github.com/ai/browserslist#queries) — just tell your desired `.browserslistrc`
- :tiger: Embed assets data w/ [postcss-url](https://github.com/postcss/postcss-url#inline)


## Advanced Use Cases
Expand Down Expand Up @@ -168,6 +169,22 @@ For example, the following would use `index.ts` as the secondary entry point:
}
```

#### How to embed assets in CSS?

You can embed assets such as font and images inside the outputted css. More information [in the CSS tricks website](https://css-tricks.com/data-uris)

Valid values: `none` or `inline`.

```json
{
"ngPackage": {
"lib": {
"cssUrl": "inline"
}
}
}
```

#### React loves Angular, Angular loves React

What if I want to use React Components in Angular?
Expand Down
Loading

0 comments on commit 1c71f24

Please sign in to comment.