Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrtsmith committed Mar 28, 2017
1 parent 2101cc1 commit c052eda
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,29 +177,29 @@ This can be ran directly in NPM scripts as you can see happening in this project
@import 'nebula-css/settings';
```

It is worth noting here that to resolve the above path your Sass compiler requires
[Node-sass IncludePaths](https://github.com/sass/node-sass#includepaths)
If your Sass Compiler does not offer IncludePaths resulting in your build failing
you will have to give your imports a relative path:
It is worth noting here that to resolve the above path your Sass compiler requires
[Node-sass IncludePaths](https://github.com/sass/node-sass#includepaths)
If your Sass Compiler does not offer IncludePaths resulting in your build failing
you will have to give your imports a relative path:

```sass
/* _settings.scss */
@import '[path-to-node-modules]/nebula-css/nebula-css/settings';
```

As you can see this is rather verbose and ugly code but it works!
As you can see this is rather verbose and ugly code but it works!

Below is an example of an NPM script configured to compile Sass and making use of `includePaths` pointing to the directory to be resolved `./node-modules/nebula-css/`
Below is an example of an NPM script configured to compile Sass and making use of `includePaths` pointing to the directory to be resolved `./node-modules/nebula-css/`

```json
"scripts": {
"sass": "node-sass --include-path ./node_modules/nebula-css/ -o dist src/scss/main.scss",
},
```

See how the NPM scripts [package.json](https://github.com/rbrtsmith/nebula-css/blob/master/package.json#L8) are configured for the Nebula CSS Demo.
See how the NPM scripts [package.json](https://github.com/rbrtsmith/nebula-css/blob/master/package.json#L8) are configured for the Nebula CSS Demo.

Alternatively here's an example using Gulp.
Alternatively here's an example using Gulp.

```javascript
gulp.task('build:css', () => {
Expand Down

0 comments on commit c052eda

Please sign in to comment.