Open p4pramod opened 6 years ago
Try uglifyjs
i compiled Hello-World example with webpack by running following command
webpack webpack-complied-Script.js --progress -p
I got the following message
WARNING in webpack-complied-Script.js from UglifyJs Condition always true [./~/es3ify-loader!./~/react/lib/ReactMount.js:764,0] Condition always true [./~/es3ify-loader!./~/react/lib/findDOMNode.js:46,0] Condition always true [./~/es3ify-loader!./~/react/lib/instantiateReactComponent.js:80,0] Dropping unreachable code [./~/es3ify-loader!./~/react/lib/shouldUpdateReactComponent.js:40,0] Condition always true [./~/es3ify-loader!./~/react/lib/traverseAllChildren.js:158,0] Condition always true [./~/es3ify-loader!./~/es5-shim/es5-sham.js:18,0] Dropping unreachable code [./~/es3ify-loader!./~/es5-shim/es5-sham.js:21,5] Condition always true [./~/es3ify-loader!./~/es5-shim/es5-shim.js:18,0] Dropping unreachable code [./~/es3ify-loader!./~/es5-shim/es5-shim.js:21,5] Dropping side-effect-free statement [./~/es3ify-loader!./~/es5-shim/es5-shim.js:2013,0] Dropping side-effect-free statement [./~/es3ify-loader!./~/es5-shim/es5-shim.js:2010,0] Condition always true [./~/es3ify-loader!./~/react/lib/ReactDOMComponent.js:907,0] Dropping side-effect-free statement [./~/es3ify-loader!./~/react/lib/ReactEventListener.js:72,0] Dropping unused function handleTopLevelWithPath [./~/es3ify-loader!./~/react/lib/ReactEventListener.js:98,0] Dropping unused variable DOCUMENT_FRAGMENT_NODE_TYPE [./~/es3ify-loader!./~/react/lib/ReactEventListener.js:26,0]
but when I run the webpack-complied-Script.js in IE 8 mode in internet explorer it did not worked.
I got the following error
JavaScript critical error at line 1, column 15160 in http://localhost:49264/src/webpack-complied-Script.js\n\nSCRIPT1010: Expected identifier
error is thrown at follwing line
Symbol&&Symbol.for&&Symbol.for
pls help
how do i create prod build. Currently the compiled file is quite large.