0

At the moment I'm trying to build a prototype of my idea, and bought a Bootstrap theme on Themeforest. Being a Frontend noob that I am, I can't seem to find concrete information how to produce vendor.js and vendor.css from the theme's provided assets directory.

So far, these seems the most reliable sources:

Any config example or some sort of detail guide would be really helpful!

Thank you!

Mickey
  • 501
  • 4
  • 8
  • 1
    there are some examples in webpack's github repo. Check [common-chunk-and-vendor-chunk](https://github.com/webpack/webpack/tree/master/examples/common-chunk-and-vendor-chunk) and [code-splitted-css-bundle](https://github.com/webpack/webpack/tree/master/examples/code-splitted-css-bundle) – loveky May 05 '18 at 05:51
  • @loveky ah~! that is very helpful! I see the important bit is in each page's `pageX.js`, and webpack produces very nice assets per page. I was thinking along the line of Rail's assets compiling and blatantly place _all_ vendors in to one big file. It is probably an anti-pattern, but is webpack capable of this? Thank you. – Mickey May 05 '18 at 06:06
  • 1
    check this [config](https://gist.github.com/loveky/3a2cbb393cbae5466da9bf1b018e8d81) – loveky May 05 '18 at 06:11

0 Answers0