https://nodejs.org/docs/latest-v12.x/api/esm.html
yarn install
yarn dev
yarn dev:ssr
yarn build:v
yarn build:csr
yarn build:ssr
yarn start:ssr
yarn test:unit
yarn lint
- add renderToStream in own local script https://github.com/nuxt/vue-bundle-renderer
- webpack-dev-middleware / webpck-hot-middleware: change code to work with koa
- folder debug
- launch vscode debug
- [vite] Failed to resolve module import "@/components/HelloWorld.vue". (imported by /src/views/Home.vue)
- [vue-devtools]: Vue.js not detected vuejs/devtools-v6#1279
- pre-commit: util.getSystemErrorName is not a function
- The set-cookie was blocked because its domain attribute was invalid with regards to the current host url 一般在域名前是需要加一个"."的,如"domain=.looli.com"。如果设置localhost的cookie,则不要设置domain,直接整个domain字段都不需要
- Cannot read property '$createElement' of undefined
- koa-static-cache报错:Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
- 自定义的中间件,执行下一个中间件,不能用next(), 一定要用await next()!,直接next(), 返回了一个空的Promise
- renderToString 会提前中断
- @vue/cli-service 引用的vue-loader有问题不对
- CSR 预渲染报错 [prerender-spa-plugin] Unable to prerender all routes! 已提PR
- 现已直接代码移植到项目中进行修改
- Alias in css don't workissue here
- vite jsx: ReferenceError: React is not defined: 加入插件:@vue/babel-plugin-jsx
- 从 Vue 3.0 开始,过滤器已删除,不再支持
1.SSR; 2.静态化; 3.预渲染prerender-spa-plugin; 4.使用Phantomjs针对爬虫做处理
- vite 完整配置
- vite + eslint + airbnb初体验, 配置eslint的alias
- Vue3 配置文件vite.config.js——请求代理、第三方模块引用、别名alias(五)
- https://github.com/ozguruysal/vue3-ssr
- https://github.com/raukaute/vue-hackernews-3.0
- https://github.com/nuxt-contrib/bundle-runner
- https://github.com/nuxt/vue-bundle-renderer