Skip to content

Commit

Permalink
fix: Fixed Webpack documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rubyboy committed May 16, 2017
1 parent 1159f17 commit 4e9b922
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,17 +191,20 @@ module.exports = {
//...
plugins: [
new ProvidePlugin({
$: "jquery",
jQuery: "jquery",
"window.jQuery": "jquery",
Hammer: "hammerjs/hammer",
Materialize: "materialize-css"
Hammer: "hammerjs/hammer"
})
]
//...
};
```
Import MaterializeCSS programatically, in the same place where you import angular2-materialize module (usually in your main module, or shared module):
```js
import 'materialize-css';
import { MaterializeModule } from 'angular2-materialize';
```
#### Loading additional resources
Another thing you would need to confirm is being able to load web fonts properly:
Expand Down

0 comments on commit 4e9b922

Please sign in to comment.