'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?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
