Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

145
Vistas
Add Mmenu to Laravel using NPM

I'm trying to add mmenu.js to a Laravel 8 project. I've installed it using NPM, but I'm having trouble including it in the project.

Right now, in bootstrap.js I have this:

import Mmenu from 'mmenu-js';
window.Mmenu = Mmenu;

There's no detailed documentation on the site for how to install on Laravel, so any help would be appreciated!

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can include in your project by writing code in the head section of page. Following is the example to put menu in your project.

    <link href="path/to/css/mmenu.css" rel="stylesheet" />
    <script src="path/to/js/mmenu.js"></script>

    <!-- Fire the plugin -->
    <script>
        document.addEventListener(
            "DOMContentLoaded", () => {
                new Mmenu( "#my-menu" );
            }
        );
    </script>
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda