Apollo icon indicating copy to clipboard operation
Apollo copied to clipboard

integrate react app within Apollo with assemble

Open nathandunn opened this issue 4 years ago • 2 comments

Integrate react is easy for doing the build: yarn build && rm -rf /Users/nathandunn/repositories/APOLLO/nathanApolloMaster/web-app/jb2 && cp -r build /Users/nathandunn/repositories/APOLLO/nathanApolloMaster/web-app/jb2

then go to:

http://localhost:8080/apollo/jb2/

Using this as a template (Grails 3):

https://github.com/grails-guides/building-a-react-app

Using:

./gradlew webpack

It re-assembles each time it is built with the code in web app/app.

Each app uses the bundled assets to build <asset:javascript src="bundle-garage.js" />.

nathandunn avatar Mar 16 '21 17:03 nathandunn

In this case its running: webpack --progress --watch

nathandunn avatar Mar 16 '21 17:03 nathandunn

Conversely, just having a separate project with webpack would accomplish the same.

nathandunn avatar Mar 16 '21 17:03 nathandunn