Message Boards
Static Files with React-Portlet (adapted from create-react-app)
Fredi B, modified 3 Years ago.
Static Files with React-Portlet (adapted from create-react-app)
Junior Member Posts: 69 Join Date: 4/1/20 Recent Posts
Hello Liferay Community,
I am testing out all the features of React Portlets and I am currently struggling with Static Files with React Portlets.
I 've added "web-context": "/some-text" to my .npmbundlerrc-File and still getting warnings in my Server Console regarding Images and Static CSS Files.
How am I supposed to integrate them to my create-react-app-Portlet that I adapted to a LiferayJS-React-Portlet?
Looking forward for any tips or hints regarding this topic.
I am testing out all the features of React Portlets and I am currently struggling with Static Files with React Portlets.
I 've added "web-context": "/some-text" to my .npmbundlerrc-File and still getting warnings in my Server Console regarding Images and Static CSS Files.
How am I supposed to integrate them to my create-react-app-Portlet that I adapted to a LiferayJS-React-Portlet?
2020-05-15 13:28:17.612 WARN [http-nio-8080-exec-3][code_jsp:?] {code="404", msg="ProxyServlet: /some-text_0.1.0/static/media/logo.svg", uri=/o/some-text_0.1.0/static/media/logo.svg}
2020-05-15 13:27:55.364
WARN [http-nio-8080-exec-5][code_jsp:?] {code="404", msg="ProxyServlet: /o/beispiel-app/static/css/main.0328466d.chunk.css.map", uri=/o/beispiel-app/static/css/main.0328466d.chunk.css.map}
Looking forward for any tips or hints regarding this topic.