Skip to content
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

Update theme-development-and-building.md doc #67

Merged
merged 1 commit into from
Jan 12, 2017
Merged
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
15 changes: 9 additions & 6 deletions sage/theme-development-and-building.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,19 +118,22 @@ Example of how to add 3rd party packages* and have them included in the theme:
2. Open up `main.js` and `main.css` to add the entry points for the package. If you're using the Slick Carousel then your theme JS and CSS would look like:

```js
/* sage/assets/scripts/main.js */
import $ from 'jquery';
import Router from './util/router';

/** import external dependencies */
import 'jquery';
import 'bootstrap/dist/js/bootstrap';
// Import Slick
import 'slick-carousel/slick/slick.min.js';
import 'slick-carousel/slick/slick.min';
```

```scss
/* sage/assets/styles/main.scss */
@import "common/variables";

// Import Slick from node_modules
// Import npm dependencies
@import "~bootstrap/scss/bootstrap";
@import "~font-awesome/scss/font-awesome";
// Import Slick
@import "~slick-carousel/slick/slick.scss";
@import "~slick-carousel/slick/slick-theme.scss";
```
Expand Down