A boilerplate using React, Mobx-State-Tree, React-Router-Dom, Sass, Webpack
- 中文
- English
Make sure you have Node.js >= 14.0.0 installed on your machine.
npm install
create .env.local
for local development, and create .env
for the production environment.
the format can refer to the format in the .env.example
file.
Use process.env.XXX
in code to access the values defined there.
npm start
npm run build
After the package is generated, a /dist
directory will be generated in the root directory.