F
F
Flaker2016-03-27 20:06:15
Web development
Flaker, 2016-03-27 20:06:15

What is the best tactic for a frontend build?

I think on the topic "How to properly and beautifully build a frontend?"
1) 3 files

  • app.js - all js of the project except the vendor one
  • vendor.js - all js vendors
  • style.css - all css of the project

2) Everything in one js file, even styles (WebPack seems to be pushing for this option)
3) The main vendors (jquery, bootstrap) are connected via CDN, build the rest as in point 1)
4) Divide the project into:
  • core.js - the main js of the project
  • Page dependent js code - one file per page

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_ _, 2016-03-27
@AMar4enko

2) Does not push, but does so by default. There is a plugin that saves css to an external file - use it in production mode.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question