Skip to content

Instantly share code, notes, and snippets.

@batwicket
Last active March 9, 2016 22:10
Show Gist options
  • Save batwicket/d7a295f2814bee1889aa to your computer and use it in GitHub Desktop.
Save batwicket/d7a295f2814bee1889aa to your computer and use it in GitHub Desktop.

MDL Integration Steps

Requirements

  • v0.5.1 of RSK. Just saying.. the procedure is fairly general.

Steps

  • add to package.json after the react-dom dependency: "react-mdl": "^1.4.4", then run npm install to fetch it.

  • add to the 'await' ncp array in tools/copy.js :

    ncp('node_modules/react-mdl/extra/material.js', 'build/public/material.js'),```
    
    
  • add to the head section in src/views/index.jade : link(rel="stylesheet", href="material.css")

  • add to the body section in src/views/index.jade : script(src='material.js')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment