Skip to content

improved Docs #70

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
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
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# browserify-css [![build status](https://travis-ci.org/cheton/browserify-css.svg?branch=master)](https://travis-ci.org/cheton/browserify-css) [![Coverage Status](https://coveralls.io/repos/cheton/browserify-css/badge.svg?branch=master&service=github)](https://coveralls.io/github/cheton/browserify-css?branch=master)
# browserify-css an amazing node package [![build status](https://travis-ci.org/cheton/browserify-css.svg?branch=master)](https://travis-ci.org/cheton/browserify-css) [![Coverage Status](https://coveralls.io/repos/cheton/browserify-css/badge.svg?branch=master&service=github)](https://coveralls.io/github/cheton/browserify-css?branch=master)

[![NPM](https://nodei.co/npm/browserify-css.png?downloads=true&stars=true)](https://www.npmjs.com/package/browserify-css)

Expand Down Expand Up @@ -44,9 +44,9 @@ Each `require('./path/to/file.css')` call will concatenate CSS files with @impor
</html>
```

## Configuration
## Configuration setting

You can set configuration to your package.json file:
You can set configuration to your package.json file as follows:
``` json
{
"browserify-css": {
Expand All @@ -57,7 +57,7 @@ You can set configuration to your package.json file:
}
```

or use an external configuration file like below:
or use an external configuration file like given below:
``` json
{
"browserify-css": "./config/browserify-css.js"
Expand Down Expand Up @@ -284,7 +284,7 @@ Strip comments from CSS. Defaults to false.

## FAQ
### 1. How do I include CSS files located inside the node_modules folder?
You can choose one of the following methods to include CSS files located inside the node_modules folder:
You can browse one of the following methods to include CSS files located inside the node_modules folder:

1. The easiest way to do this is using the `@import` rule. For example:

Expand All @@ -302,7 +302,7 @@ You can choose one of the following methods to include CSS files located inside
@import "styles/common.css";
```

2. Use the global transform option (i.e. `--global-transform` or `-g`) on the command line to transform all files in a node_modules directory:
2. Using the global transform option (i.e. `--global-transform` or `-g`) on the command line to transform all files in a node_modules directory:

``` bash
$ browserify -g browserify-css app.js > bundle.js
Expand Down Expand Up @@ -341,7 +341,7 @@ You can choose one of the following methods to include CSS files located inside

### 2. How do I load font and image files from node_modules?

Assume that you have the following directory structure:
Lets assume that you have the following directory structure:
``` bash
package.json
dist/
Expand Down