Skip to content

Commit

Permalink
Remove Font Awesome dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaprajescu authored May 13, 2019
1 parent 4f85dbe commit 0803728
Showing 1 changed file with 1 addition and 36 deletions.
37 changes: 1 addition & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ aurelia.use.plugin('aurelia-froala-editor');
- In your `src/app.html` include CSS files and Froala Editor component:

```html
<require from="font-awesome.css"></require>
<require from="froala-editor/css/froala_editor.pkgd.min.css"></require>
<require from="froala-editor/css/froala_style.min.css"></require>

Expand Down Expand Up @@ -108,12 +107,6 @@ aurelia.use.plugin('aurelia-froala-editor');
- In `aurelia_project/aurelia.json` add to `vendor_bundle`

```javascript
{
"name": "font-awesome",
"path": "../node_modules/font-awesome/css",
"main": "font-awesome.css"
},

{
"name": "aurelia-froala-editor",
"path": "../node_modules/aurelia-froala-editor/dist/amd",
Expand All @@ -123,18 +116,11 @@ aurelia.use.plugin('aurelia-froala-editor');
"froala-editor.html"
],
"deps": [
"froala-editor",
"font-awesome"
"froala-editor"
]
}
```

- Create a task to copy Font Awesome fonts:

```javascript
au generate task copy-assets
```

- Open newly created `aurelia_project/tasks/copy-assets.js` file and make it look like this:

```javascript
Expand Down Expand Up @@ -168,27 +154,6 @@ let build = gulp.series(
);
```

- Add Font Awesome paths to `aurelia_project/aurelia.json` file:

```javascript
{
"paths": {
"root": "src",
"resources": "resources",
"elements": "resources/elements",
"attributes": "resources/attributes",
"valueConverters": "resources/value-converters",
"bindingBehaviors": "resources/binding-behaviors",
"assets": [
{
"src": "./node_modules/font-awesome/fonts/**/*.*",
"dest": "./fonts"
}
]
}
}
```

#### Run aurelia-cli

```bash
Expand Down

0 comments on commit 0803728

Please sign in to comment.