Skip to content

Move index.html and other .html files outside of the /src & /dist folders #205

Answered by pnikolov
Probablybest asked this question in Q&A
Discussion options

You must be logged in to vote

@Probablybest, in order to modify your copy of the setup to do the required you need to do the following modifications:

webpack.config.js change this line:

 const templateFiles = fs.readdirSync(environment.paths.source)

to this:

 const templateFiles = fs.readdirSync(environment.paths.source + '/../')

Then change configuration/environment.js paths.output to:

  output: path.resolve(__dirname, '../dist/assets/'),

And finally move your .html files one level above the src directory as you have listed in your issue's description.

I am attaching a git .patch file if you want to apply all the above changes at once:
probablybest.patch

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pnikolov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #179 on October 30, 2023 08:37.