Giter Site home page Giter Site logo

Comments (3)

zhenshuaiwws avatar zhenshuaiwws commented on May 26, 2024

#102 我在 Demo 中完善了一下,使用子应用的 assets 的示例,希望能帮助你

from ngx-planet.

zhenshuaiwws avatar zhenshuaiwws commented on May 26, 2024

首先,明确一下 ngx-planet 的原理,如 Demo 中的结构,ngx-planet 底层实现其实会启动三个 angular 的 application,各自不同的端口,portal 端口为 3000,app1端口为3001。

请求子应用 app1 的资源文件通过在 angular.json 中设置 proxy.conf.js 代理,来加载 app1 的资源文件。

http://localhost:3000/static/app1/assets/github.png 代理到 http://localhost:3001/static/app1/assets/github.png

from ngx-planet.

zhenshuaiwws avatar zhenshuaiwws commented on May 26, 2024

我是旧项目整合进来的,但是很多样式图片都失效了。

image

但是图片失效了
image

应该如何配置?

from ngx-planet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.