How To export app as a widget for 3rd party websites #10250
              
                Unanswered
              
          
                  
                    
                      asecondwill
                    
                  
                
                  asked this question in
                General
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My first thought to do this was to export as a single widget.js file.
I followed this issue : #3365
So export using webpack after the build:
And adapting the build script in my package.json file like:
The bundle.min.js file is created. However if i serve that from a an html page, nothing happens. The widget does not display, no console errors.
Am i missing something? This is my first react project, so there is loads i don't know. The app works in development mode.
Beta Was this translation helpful? Give feedback.
All reactions