Skip to content
Vue.js starter
JavaScript CSS Other
Branch: master
Clone or download
Latest commit 77e4ff6 Jul 18, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app page loader update & webpack config Jul 17, 2017
web added html el Jul 18, 2017
.eslintrc.json starter Mar 14, 2017
.gitignore gitignore update Mar 14, 2017
README.md doc update Jul 17, 2017
package.json new config & readme update Apr 24, 2017
server.dev.js new config & readme update Apr 24, 2017
webpack.config.js page loader update & webpack config Jul 17, 2017

README.md

Vue.js Starter

Minimalist starter for Vue 2 with Vue-router and Babel, which uses static templates by http request.

SEE DEMO

Sometimes maybe you need use some PHP scripts, then just use files with .php extension and also change line 8 in /app/app-router.js or remove it.

Switch to branch php for example.

How to use

Install

npm install

Run dev server

npm run dev:html # html files
# or
npm run dev:php # php files

You can also set your own HOST and PORT to run dev server.

npm run dev:html --host=127.0.0.1 --port=8080

Build static assets and run preview

npm run view:html # html files
# or
npm run view:php # php files

Build static prod assets

npm run prod

Remove static assets

npm run clean

*Tested on macOS

You can’t perform that action at this time.