Giter Site home page Giter Site logo

build error about react-cool-starter HOT 2 CLOSED

wellyshen avatar wellyshen commented on May 9, 2024
build error

from react-cool-starter.

Comments (2)

webican avatar webican commented on May 9, 2024 1

npm install you only do once to install the dependencies of the project. You can see the dependencies in package.json. This file also contains all the info you need about the various commands.

npm run build command cleans and builds a new development version of the project into your public/dist folder.

npm run start command starts the development server with the development version you just built.

npm run:production command cleans and builds a new production version of the project into your public/dist folder and starts the production server with the production version you just built.

If you want to deploy your project to a production server you need to copy the whole built project to your production node server, not just the dist folder.

from react-cool-starter.

wellyshen avatar wellyshen commented on May 9, 2024

Hi @vanarieleyen

As @jazblueful mentioned, npm install is for installing the dependencies which the project needed, so you just need to do it once. This is an universal rendering starter, so you need to put the project on your host which supports node.js.

By the way, the index.html is generated through the run time of express server. You can configure it through the ./src/helper/renderHTMLPage.js file.

Moreover, you don't have to clean the dist file by yourself, whenever you run the npm run build or npm run start:production the npm scripts will clean the dist folder for you :)

from react-cool-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.