ReduxSimpleStarter
ReduxSimpleStarter copied to clipboard
NPM RUN BUILD NOT FUNCTION!!
Hi! i have use this repo for the base of my project, but i need to create a build script, i have import the react-script in my project and in the package.json in the scripts section i have write: "build": "react-scripts build"
but i have this errors:
any have a solution??
any updates?
Right now, ReduxSimpleStarter
doesn't support npm build
, and it's created for educational purpose. If you want to quickly create and run React applications with no configuration, you can use create-react-app
instead.
To manually build with ReduxSimpleStarter
, run the command webpack -p
to generate a complete "/bundle.js" that contains all the code for your application, then copy that file including your "/index.html" and "/style" into a single "/build" folder, that folder will be your compiled product.
Here is my example: https://github.com/5ervant/simple-blogging-application/tree/master/docs And its live preview: https://5ervant.github.io/simple-blogging-application/
Thanks, the above steps work for me.
I run node_modules/webpack/bin/webpack.js -p
The only thing I need to update is to remove leading '/' from "/bundle.js"
and "/style/style.css"
in index.html
, because I deploy the app in a sub-folder of web root.