1 year ago

#324165

test-img

Yang Lin

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?

javascript

vue.js

build

nuxt.js

ssg

0 Answers

Your Answer

Accepted video resources