// router.js router.use(express.static(path.join(__dirname, '../client/'))); router.get('/', (req, res)=> { res.sendFile(path.join(__dirname, '../client/index.html')); }); // server.js app.use('/', router); 

Gulp collects all the files and sends them to the build folder (checked, really all the files are there), and with all this, not all files are pulled into the browser.

PS: On the files I need, the node gives 304 status.

  • You have the '/' folder in the code, the '../client' folder, and it’s not clear what the build folder is all about. Where is she? - Artem Dudkin
  • The build folder is the same folder as dev, only where does all the minified, pass-through code go. In this case, "../client/" is where a particular router will pick up static from. - Max
  • Great, there is also a dev folder. But I didn’t have an understanding of the connection between the folders mentioned in the code and the folders mentioned in the text. - Artem Dudkin
  • no matter how many folders, there is an n-th number of files, some of which express gives, and some fall into the no-domain. Folders "/" no, it is a route. - Max

1 answer 1

304 is normal. Just the server is configured.