vue.js 2.0, vuex, vue-router, vue-server-renderer, express, cheerio, superagent, redis
# start redis
# install dependencies
npm install
# start in development
npm run dev
# init data, start spider
curl http://host:port/api/spider // replace your host:port
# build for production
npm run build
-
xxx
-
open http://127.0.0.1:4000/api/spider, start spider
-
pages:
- "window undefined" in server side render
- v-html replace {{{}}}
webpack
error:Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
trick:
$ npm uninstall webpack --save-dev
followed by
$ npm install [email protected] --save-dev
Then you should be able to gulp again. Fixed the issue for me.
npm run dev
from: angular/angular-cli#2234
<div>
<span v-for="n in 10">{{ n }}</span> // n
</div>
<div>
<span v-for="(item, $index) in items">{{ $index }}</span> // $index
</div>
2016 12 01 fix babel error
. ├── README.md ├── build ├── index.html ├── server.js ├── frontend │ ├── App.vue │ ├── app.js │ ├── assets │ ├── client-entry.js │ ├── components │ ├── router │ ├── server-entry.js │ ├── store │ └── views ├── backend │ ├── spiders │ └── routers ├── node_modules ├── package.json ├── public └── test