Converts JSX to Objects (JSON) using blood magic.
npm install --save jsxobj
import jsxobj from 'jsxobj'; // example of an import'd plugin const CustomPlugin = config => ({ ...config, name: 'custom-plugin' }); console.log( <webpack target="web" watch> <entry path="src/index.js" /> <resolve> <alias from="react" to="preact-compat" /> <alias from="react-dom" to="preact-compat" /> </resolve> <plugins> <uglify-js opts={{ compression: true, mangle: false }} /> <CustomPlugin foo="bar" /> </plugins> </webpack> );
The above outputs:
{ "name": "webpack", "target": "web", "watch": true, "entry": { "path": "src/index.js" }, "resolve": { "alias": { "from": "react-dom", "to": "preact-compat" } }, "plugins": { "uglify-js": { "opts": { "compression": true, "mangle": false } }, "custom-plugin": { "foo": "bar" } } }
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4