Skip to content

Instantly share code, notes, and snippets.

@josepereza
Last active November 17, 2019 18:34
Show Gist options
  • Save josepereza/8ef3eab40f3bc2e17db33d9907bd57e1 to your computer and use it in GitHub Desktop.
Save josepereza/8ef3eab40f3bc2e17db33d9907bd57e1 to your computer and use it in GitHub Desktop.
node js - materialize

*Primero se instala:

npm install materialize-css.
  • En el archivo index.html
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/materialize.min.css">
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

    <title>Document</title>
</head>
              *************
  <script src="js/materialize.min.js"></script>
            
  • En el archivo index.js
app.use(express.static(path.join(__dirname, 'public'))); // configure express to use public folder --opcional
app.use(express.static(path.join(__dirname, 'node_modules/materialize-css/dist')));  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment