25.06.2018 Views

Full-Stack Vue.js 2 and Laravel 5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Node modules<br />

Another key aspect of the <strong>Laravel</strong> frontend is the package.<strong>js</strong>on file in the root of<br />

the project directory. Similar to composer.<strong>js</strong>on, this file is used for configuration<br />

<strong>and</strong> dependency management, only for Node modules rather than PHP.<br />

One of the properties of package.<strong>js</strong>on is devDependencies, which specifies the modules<br />

required in the development environment, including jQuery, <strong>Vue</strong>, <strong>and</strong> Lodash.<br />

package.<strong>js</strong>on: { ...<br />

"devDependencies": { "axios": "^0.17", "bootstrap-sass": "^3.3.7", "cross-env":<br />

"^5.1", "jquery": "^3.2", "laravel-mix": "^1.4", "lodash": "^4.17.4", "vue":<br />

"^2.5.3" } }

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

Saved successfully!

Ooh no, something went wrong!