andrey29's avatar

Build a bundle without manifest.js or other dependencies

Hi everyone! I make a js widget, what depend from my site data (widget get data by api, but it doesnt matter in the context of question). It connected to site by script tag

<script src="/widget/widget.js" assync></script>

css file is appending in script. Widget is work correctly, but on my site only. I found out, what it depend from manifest.js file - without this dependency it is doesnt work. Now im buiding widget bundle like this:

mix
.sass('resources/sass/widget.scss', 'public/widget/widget.css')
.js('resources/js/widget.js', 'public/widget/widget.js');

Could everyone explain, how to correctly build a bundle by laravel mix without this and other extra-dependency? (or, maybe, i should use pure webpack in this case?) Thanks in advance!

0 likes
3 replies
vincent15000's avatar

manifest.js is not a dependency. It's generated automatically and is necessary for mix to work.

andrey29's avatar

@vincent15000 Thanks for an answer. Yes, maybe i am wrong with definitions, but it doesnt change the point of question - how to build a required single bundle without bound to manifest.js?

1 like

Please or to participate in this conversation.