react build tools
npm install gun-packreact cli react compilerjsx
yarn add gun-pack
`- package.json scripts
`jsx
gun-pack dev
gun-pack build // after you build, also you can startup service
gun-pack server
`
#### You can customize your compiler configuration in your root directory
- gun.config.js
example:
`jsx
const config = {
port: 9000,
defaultEntry: true,
defaultHtmlPlugin: true,
openBrowser: false,
writeToDisk: false
publicPath: '/',
entry:null, // Object | null | array
proxy: {
'/api': {
target: 'http://localhost:3000',
pathRewrite: {'^/api': ''},
},
},
htmlPluginOption: [ // null | Array ``| parameter | description |
| ---- | ---- |
| port |
| open_browser |
| default_entry |
| default_htmlPlugin |
| writeToDisk |
| publicPath |
| entry | Object\
| proxy | Object\
| htmlPluginOption | Array