Comments (8)
开启
公共依赖模块的服务
,我的公共依赖模块在portal项目下common-deps-static文件夹中,只需要在这个文件夹下开启服务即可,可以通过http-server插件,端口设置为8000
,并且设置跨域`这个要怎么操作呀
@liuyaoShuai
首先你要确定你有没有启动一个静态服务的工具,没有的话可以安装 http-server,npm i http-server -g
然后你需要在/portal/common-deps-static/
路径下,执行命令hs -p 8000 --cors
,即可
from microfront-end-single-spa.
解决了吗,我也遇到了这个问题
from microfront-end-single-spa.
我本地运行没这个问题呀,不知道你们是怎么运行的
from microfront-end-single-spa.
from microfront-end-single-spa.
这个问题是,启动模式的问题,现在project1、project2、menu项目分别新增了本地开发模式下的启动命令:npm run dev:local,通过这个命令,单独运行各个项目,就可以打开各个项目的页面了
from microfront-end-single-spa.
开启公共依赖模块的服务
,我的公共依赖模块在portal项目下common-deps-static文件夹中,只需要在这个文件夹下开启服务即可,可以通过http-server插件,端口设置为8000
,并且设置跨域`
这个要怎么操作呀
from microfront-end-single-spa.
非常感谢 ,好厉害啊
from microfront-end-single-spa.
非常感谢 ,好厉害啊
感谢支持!
from microfront-end-single-spa.
Related Issues (5)
- 运行步骤1 HOT 2
- hs -p 8000 --cors HOT 2
- 这个框架是否通过vuex实现共享store? HOT 1
- project2: npm run dev:local运行报错
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 microfront-end-single-spa.