An example using preact, preact-router, and preact-mdl with TypeScript and Webpack.
Note that this current relies on development version of preact-router and preact-mdl, as the built-in type definitions have not yet been released.
git clone https://github.com/tbekolay/preact-mdl-example.gitcd preact-mdl-examplenpm install
For development, I recommend using
npm run debugand navigating to http://localhost:8080/. The page will automatically be reloaded if any of the files change.
To build files that can be statically hosted, do
npm run buildThe created files will be placed in the dist folder.
MIT
Thanks to @seveves for contributing!