25.06.2018 Views

Full-Stack Vue.js 2 and Laravel 5

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

JavaScript<br />

Inspecting the output JavaScript file, public/<strong>js</strong>/app.<strong>js</strong>, we see a whole lot of code<br />

in there - around 42,000 lines! That's because jQuery, Lodash, <strong>Vue</strong>, <strong>and</strong> the other<br />

JavaScript dependencies have all been bundled into this one file. It's also<br />

because we've used a development build that does not include minification or<br />

uglification.<br />

If you search through the file, you'll see that the code from our entry file, app.<strong>js</strong>,<br />

has been transpiled to ES5 as expected:<br />

Figure 5.5. Bundle file public/<strong>js</strong>/app.<strong>js</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!