vuejs / vue-hackernews-2.0

HackerNews clone built with Vue 2.0, vue-router & vuex, with server-side rendering
MIT License
10.96k stars 2.15k forks source link

求一个不用ssr的热更新的例子 #234

Closed SteveCruise closed 7 years ago

SteveCruise commented 7 years ago

不用ssr,但是也不用webpack-dev-server命令,因为webpack-dev-server命令定制化不行。 而是像这个例子一样用两个库:webpack-dev-middleware和webpack-hot-middleware的vue热更新项目。

AfterThreeYears commented 7 years ago

https://github.com/AfterThreeYears/vue_client_template_gayhub

SteveCruise commented 7 years ago

@AfterThreeYears 这个还是用了webpack-dev-server

SteveCruise commented 7 years ago

那个我在lavas的demo里找到一个不用ssr又不用webpack-dev-server命令的热重载例子,是和express搭配的,自己成功也改成了和koa2搭配,但是好大一坨乱七八糟的引用和webpack配置,受不了了弃用了。