Package Exports
- create-react-redux-pack
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (create-react-redux-pack) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
create-react-redux-pack
react + redux + webpack boilerplate
Install
$ npm i create-react-redux-pack -g$ create-react-redux-packUsage
- Just type like this
$ npm start
──────────────
🛫 Webpack Dev Server (PORT: 3000) // Running Webpack Dev Server(PORT 3000).
🛫 Webpack Dev Server (PORT 3000) -> UI SERVER (PORT 8088) (PROXY) // Running Webpack Dev Server(PORT 3000) -> UI SERVER (PORT 8088) (PROXY).
🚀 Build JS(Production) // Build JS(Production)
──────────────
😢 Exit
──────────────- How To API proxy setting
//whitelist.js
module.exports = {
/**
* "domain": [
* "path1",
* "path2",
* "path3",
* ...
* ]
*/
};//example.jsx
...
componentDidMount() {
axios.get('/path1') // proxy
.then(res => {
// Do something...
});
}
...