From 07f92467e7ee2e02627c593d58ca3ac9e8ed64b7 Mon Sep 17 00:00:00 2001 From: jos Date: Tue, 10 Jan 2017 20:03:09 +0100 Subject: [PATCH] Try get react bundle working (js is ok, css still broken) --- examples/react_demo/src/App.js | 2 +- gulpfile.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/react_demo/src/App.js b/examples/react_demo/src/App.js index b500ef1..aad5dce 100755 --- a/examples/react_demo/src/App.js +++ b/examples/react_demo/src/App.js @@ -7,7 +7,7 @@ import './App.css' // // import JSONEditor from 'jsoneditor/react' // -import JSONEditor from '../../../react' +import JSONEditor from '../../../dist/jsoneditor-react' const json = { diff --git a/gulpfile.js b/gulpfile.js index 66eda9e..5516bd8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -131,6 +131,8 @@ const compilerReact = webpack({ cache: true, bail: true, output: { + library: 'JSONEditor', + libraryTarget: 'umd', path: DIST, filename: NAME_REACT },