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.

<strong>Vue</strong>.<strong>js</strong> builds<br />

There are a number of different environments <strong>and</strong> use cases for running <strong>Vue</strong>.<strong>js</strong>.<br />

In one project, you might load <strong>Vue</strong> directly in the browser, in another you may<br />

load it on a Node.<strong>js</strong> server for the purpose of server rendering. As such, there are<br />

different builds of <strong>Vue</strong> provided so you can choose the most suitable one.<br />

Looking in the dist folder of the <strong>Vue</strong> NPM package, we can see eight different<br />

<strong>Vue</strong>.<strong>js</strong> builds:<br />

Figure 6.16. The various builds in the node_modules/vue/dist folder The <strong>Vue</strong>.<strong>js</strong> website provides a table to<br />

explain these eight different builds:<br />

UMD CommonJS ES Module<br />

<strong>Full</strong> vue.<strong>js</strong> vue.common.<strong>js</strong> vue.esm.<strong>js</strong><br />

<strong>Full</strong><br />

(production)<br />

vue.runtime.<strong>js</strong> vue.runtime.common.<strong>js</strong> vue.runtime.esm.<strong>js</strong><br />

vue.min.<strong>js</strong> - -<br />

Runtimeonly<br />

Runtimeonly<br />

vue.runtime.min.<strong>js</strong> - -

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

Saved successfully!

Ooh no, something went wrong!