Giter Site home page Giter Site logo

Comments (4)

erikjasso avatar erikjasso commented on June 12, 2024

Ask the front-end devs what they are using to build the React app

from recordexpungpdx.

maxkwallace avatar maxkwallace commented on June 12, 2024

@erikjasso right now the frontend is set up to use the create-react-app defaults (Webpack) to do builds and I don't see a need to change that in the future. You can do a build in that directory with the command npm run build and it looks like this:

mkw@M4600:~/Documents/repos/recordexpungPDX/recordexpungPDX/src/frontend$ npm run build

> [email protected] build /home/mkw/Documents/repos/recordexpungPDX/recordexpungPDX/src/frontend
> react-scripts-ts build

Creating an optimized production build...
Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
(node:8496) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
Compiled successfully.

File sizes after gzip:

  34.18 KB  build/static/js/1.be79822f.chunk.js
  3.56 KB   build/static/js/main.7dcb98c8.chunk.js
  1.02 KB   build/static/css/main.60428d27.chunk.css
  763 B     build/static/js/runtime~main.229c360f.js

The project was built assuming it is hosted at the server root.
You can control this with the homepage field in your package.json.
For example, add this to build it for GitHub Pages:

  "homepage" : "http://myname.github.io/myapp",

The build folder is ready to be deployed.
You may serve it with a static server:

  npm install -g serve
  serve -s build

Find out more about deployment here:

  http://bit.ly/CRA-deploy

from recordexpungpdx.

erikjasso avatar erikjasso commented on June 12, 2024

@maxkwallace I've never used Webpack. What does it do?

from recordexpungpdx.

maxkwallace avatar maxkwallace commented on June 12, 2024

@erikjasso Webpack is a tool that's primarily used to transform Javascript code files on the filesystem (i.e. what we edit in a repo) into static assets, typically and most importantly, one or more big Javascript files that's the result of bundling together and minifying all the code you need.

from recordexpungpdx.

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.