[Example] Two separated bundles for front/admin modules
JanMikes opened this issue · comments
Jan Mikeš commented
Is it worth separating front/admin assets or just bundle them all together in one app.js?
Etc in admin there are datetimepicker and other plugins that are not used on front -> i want to save user's data usage.
Milan Felix Šulc commented
Sure, It can be done using more entry points.
Milan Felix Šulc commented
I've added it on roadmap list.
Milan Felix Šulc commented
Hi @JanMikes
Solved via changes in webpack.config.js
And appropriate changes in admin layout
https://github.com/trainit/2018-03-nette-webpack/blob/ec153046715d824064c51562fcd0116419d4f067/app/presenters/templates/Admin/%40layout.latte#L1-L9