Skip to content

Commit 4e9b922

Browse files
committed
fix: Fixed Webpack documentation
#270 #268
1 parent 1159f17 commit 4e9b922

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,17 +191,20 @@ module.exports = {
191191
//...
192192
plugins: [
193193
new ProvidePlugin({
194-
$: "jquery",
195-
jQuery: "jquery",
196194
"window.jQuery": "jquery",
197-
Hammer: "hammerjs/hammer",
198-
Materialize: "materialize-css"
195+
Hammer: "hammerjs/hammer"
199196
})
200197
]
201198
//...
202199
};
203200
```
204201
202+
Import MaterializeCSS programatically, in the same place where you import angular2-materialize module (usually in your main module, or shared module):
203+
```js
204+
import 'materialize-css';
205+
import { MaterializeModule } from 'angular2-materialize';
206+
```
207+
205208
#### Loading additional resources
206209
207210
Another thing you would need to confirm is being able to load web fonts properly:

0 commit comments

Comments
 (0)