Skip to Content
Vue.js 2 Cookbook
book

Vue.js 2 Cookbook

by Andrea Passaglia
April 2017
Intermediate to advanced
454 pages
12h 51m
English
Packt Publishing
Content preview from Vue.js 2 Cookbook

How it works...

The Webpack dev server is very helpful software that lets you develop with a very tight feedback loop. We used plenty of arguments to make it run:

webpack-dev-server --output-path / --inline --hot --open

All these parameters are the same inside the webpack.config.js. Instead, we are putting these parameters in the command line for convenience. The --output-path is where the Webpack server will serve bundle.js; in our case, we said that we want it served at the root path, so it will effectively bind the /bundle.js path to the actual bundle.js file.

The second parameter, --inline, will inject some JavaScript code in our browser so that our app can communicate with the Webpack dev server.

The --hot parameter will activate the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Vue.js 2

Learning Vue.js 2

Olga Filipova
Pro Vue.js 2

Pro Vue.js 2

Adam Freeman

Publisher Resources

ISBN: 9781786468093Supplemental Content