Skip to content

AnastasiiaPlutalova/react-no-cra

Repository files navigation

react-no-cra

This is an react app which is set up without create-react-app command.

To set up react app from scratch with webpack:

  • npm init
  • npm i --save-dev webpack webpack-cli webpack-dev-server html-webpack-plugin
  • npm i @babel/plugin-transform-runtime @babel/preset-env @babel/preset-react babel-loader
  • npm i react react-dom
  • Create webpack.config.js, set mode to development, add HtmlWebpackPlugin
  • Add scripts to package.json
"scripts": {
    "start": "webpack serve",
    "build": "webpack",
    "test": "echo \"Error: no test specified\" && exit 1"
  },

Entry point: src/index.js

HTML: publick/index.html

Other branches

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published