Comments (3)
TODO:文档以svelte.dev为例,如何自己扩展和定义一个Serverless-side render
from ssr.
mark 记录
plugin-faas和plugin-midway分的不好
plugin-faas基于midway-faas
plugin-midway基于midway-web
目前来看虽然都是midway系的,在启动部署构建方面差别还是比较大。且一个需要 f.yml
文件存在。暂时分为独立的两个插件分别针对 serverless场景 和传统 Node.js 应用场景。后续跟 midway 团队沟通如何统一
plugin代码在哪里?别人如何扩展
plugin仅用于本地开发阶段使用,生产环境不依赖 plugin。通过 config.js 扩展应用的一些功能。此 plugin 不像 webpack plugin 以及 umi plugin。我们支持单个服务端plugin与单个前端plugin 互相组合。不支持多个服务端plugin或者前端plugin互相组合。此处的plugin粒度较大,详细描述见readme
"vue": "^2.0.0",??
目前的结构是 vue2+webpack, vue3+vite 后续完善,但工作量不确定,暂时不一起发布。
vite部分没有看到
create-ssr-app集成没有
详情见 readme,通过 npm init ssr-app <projectName> --template=xxx
创建不同的 example
example和其他地方不要过度强调midway,这个版本主导Serverless
example里既有midway又有egg,依赖需要处理一下。
这是 [email protected] 的用法,[email protected] 将midway作为上层框架,egg/koa/express 作为底层框架根据需要安装使用
测试基本没有。只有jest配置。
e2e 测试所有的 example 都有, jest单测在egg-react-ssr 这个项目都有,晚点可以迁移过来并更新
fePlugin命名不好
待讨论
from ssr.
fePlugin 改为 clientPlugin,跟serverPlugin对应
from ssr.
Related Issues (20)
- 按照快速开始指南,部署到阿里云函数计算FC后,打开直接500 HOT 5
- 好像不支持动态配置文件 HOT 4
- Webpack最优化问题 HOT 1
- 使用antd时存在样式闪烁问题 HOT 7
- sourcemap 对应配置完善后,构建产物中未生成 sourcemap 文件 HOT 2
- 官网挂了,麻烦看一下 HOT 4
- ssr build 优化建议 HOT 3
- 框架怎么设置 productionSourceMap HOT 3
- vite编译超时 HOT 3
- 怎么引入element-plus HOT 14
- 通过 less loader 配置的 less 变量不生效 HOT 5
- 请问有没有 egg的服务端插件? 如果没有,后端想使用egg,该怎么做呢,谢谢。 HOT 5
- 访问未定义的路由时,server端代码报错
- 生产环境的antdv ui css 样式和开发环境不一致 HOT 4
- 引入 css文件 报错 HOT 17
- 请问启动后,isBrower找不到,编译报错怎么解决?谢谢 HOT 2
- npx ssr build --html 编译出错 HOT 1
- 使用midway-vue3-ssr模版在组件中访问public下的静态资源404 HOT 3
- antd5新版本的兼容性问题
- 新版本antd5兼容性问题 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ssr.