Skip to content

Commit

Permalink
readme add font face support desc
Browse files Browse the repository at this point in the history
  • Loading branch information
lackhurt committed May 26, 2016
1 parent a9b89b2 commit 118e19f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
25 changes: 19 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# css-import

> Concat the css file by "@import". The relative url of the background image will be changed automatically.
> Concat the css file by @import. The relative url of the background image and font face will be changed automatically.
## Getting Started
This plugin requires Grunt `~0.4.0`
Expand All @@ -27,7 +27,7 @@ grunt.initConfig({
css_import: {
your_target: {
options: {

},
files: {
'tmp/simple_concat/all.css': ['test/fixtures/style/all.css']
Expand All @@ -39,19 +39,24 @@ grunt.initConfig({
```

### Options
There is no option yet.
Default options is OK!

### Usage Examples

#### Default Options
In this example, the default options are used to do something with whatever. So if the `all_modules.css` file has the content

In this example, the default options are used to do something with whatever.
So **if** the `all_modules.css` file has the content


@import "module_a/a.css";
@import "module_b/b.css";
@import "../lib/lib.css";

ul {
margin: 0;
}

**And** dest file is `dest/all.css`
```js
grunt.initConfig({
css_import: {
Expand All @@ -62,5 +67,13 @@ grunt.initConfig({
});
```

The relative url of the background image will be changed automatically.
**Then** `dest/all.css`

/** module_a/a.css's content **/
/** module_b/b.css's content **/
/** ../lib/lib.css's content **/

ul {
margin: 0;
}
**The relative url of the background image and font face will be changed automatically.**
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grunt-css-import",
"description": "Concat the css file by \"@import\". The relative url of the background image will be changed automatically.",
"version": "0.1.7",
"description": "Concat the css file by \"@import\". The relative url of the background image and font face will be changed automatically.",
"version": "0.1.8",
"homepage": "https://github.com/lackhurt/grunt-css-import",
"author": {
"name": "lackhurt",
Expand Down

0 comments on commit 118e19f

Please sign in to comment.