Skip to content

wpbjiuy/vue1

Repository files navigation

Vue 2.0 + webpack 3.0 Simple Routing Example

A simple example of routing with Vue 2.0 without using vue-router. This branch uses the raw HTML5 History API. For an example integrating a 3rd-party routing solution, see the pagejs branch.

### if(!npm) install nodejs.
npm install

### if(!webpack) npm insatll webpack.

### if(!webpack-dev-server) npm install webpack-dev-server.

## cmd
cd ./
webpack
webpack-dev-server
open browser >> localhost:{{port}}

``` Or bash
# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

For a detailed explanation of the build process, read the docs for vue-loader.

About

vue + webpack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published