developit / preact-mdl

:boom: A collection of Preact Components that encapsulate Google's Material Design Lite.
MIT License
187 stars 20 forks source link

Add MDL stylesheets to your html #44

Closed unlocomqx closed 7 years ago

unlocomqx commented 7 years ago

How to add MDL stylesheets to html, I don't have an index.html file in src Sorry I'm new to this!

I used preact-cli to create my project using defaults

unlocomqx commented 7 years ago

Found a solution Create preact.config.js in the root of your app https://gist.github.com/unlocomqx/353387e265d5c9fbc91e5224ddbb290f

Copy template.html from preact-cli https://github.com/developit/preact-cli/blob/master/src/resources/template.html To index.html inside your src

There's a related issue though https://github.com/developit/preact-cli/pull/164