• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Evaluaciones
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

157
Vistas
How to generate js and html into the same folder using nuxtjs

Commonly, the generated result would looks like this:


/dist
-- /_nuxt
---- /static
------ ...(JS files)

-- /page1
---- index.html
-- /page2
---- index.html

Depending on my task, I want to design a config.js for people who doesn't familiar with coding, so I want to use nuxtjs generate ssg build files like this dir structure:

/dist
-- /page1
---- index.html
---- config.js

-- /page2
---- index.html
---- config.js

or likes this:

/dist
-- /page1
---- index.html (js in the html)

-- /page2
---- index.html (js in the html)

Is this possible to do this?

about 3 years ago · Juan Pablo Isaza
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 Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda