Skip to content

RoseLV/Minesweeper-React

Repository files navigation

This project is a multi-page frontend React template.

Multi-Page Entry Points

  • Create a new HTML file in the public directory (it can have multiple levels, e.g., public/test/home.html).
  • Create a corresponding folder in the src/pages directory with the same structure as in the public directory (e.g., src/test/home), then create an index.js file inside it as the entry JavaScript file for the page.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified, and the filenames include hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

Code Splitting

This section has moved here: Code Splitting

Analyzing the Bundle Size

This section has moved here: Analyzing the Bundle Size

Making a Progressive Web App

This section has moved here: Making a Progressive Web App

npm run build fails to minify

This section has moved here: Troubleshooting npm run build failures

本项目为支持多页面的前端React模版项目

多页面入口

  • public 目录下新建html文件(可以有多级路径,eg: public/test/home.html)
  • src/pages 目录下新建与 public 目录下相同文件夹(eg: src/test/home),然后在该新建路径中创建index.js即为页面的入口js

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published