L
L
l4m3r2019-04-05 11:52:08
Web development
l4m3r, 2019-04-05 11:52:08

What is the folder structure of the simplest front-end application?

It is necessary to write one simple webgl application. No backend. No framework.
index.html + 1 min.js from several JS6 files + 1 min.css from several sass + statics.
How canonically organize the directory structure? Like this?

/src
   /js
   /sass
   /img
   index.html
/dst
/node_modules
package.json

And set up webpack so that everything from src to dst is copied to each build. Or how? But some files from src do not change and will be stupidly copied to the build directory uselessly. Or is it better to keep them there in advance and in src only what should be processed? Or do you not need to make a division into src and dst at all?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Okhotnikov, 2019-04-05
@tsepen

Here is a good example , remove all unnecessary and you will have what you need

A
Alexander Prisyazhnyuk, 2019-04-05
@RedEagle69

Ready template for all your needs. Read the readme and use)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question