react-min-build
v1.2.4
Published
React minimized build
Downloads
5
Readme
react-min-build
created by: Cydnirn
What's it about?
It's a boilerplate for react, a minimized, basic, configuration file for which was for my own personal and team use but I decided to open source it
It only consist of webpack, babel, React, React-dom, react-router, and @mui
It already has alias so path resolving is easier, also already has a plugin that automatically import react so you don't need to import it on every file
How to use?
Required fs-extra installed globally
If you are cloning this one from github, just type
npm link
And go to your desired folder, then write
react-min-build yourProjectName
And it will create yourProjectName folder with all dependency installed, edit package.json as freely as you like
Or you can write
react-min-build
And it will just do the same as above but on the currently open folder
If you use it from npm, just skip to the second step
Or typically you can just run npx
npx react-min-build
If you want to create it in another folder, just write the name of the folder next to "react-min-build"
npx react-min-build ProjectName
Update
Webpack should now read JSX automatically without adding the .jsx Also update Webpack aliases:
- "./src" as "@"
- "./src/assets" as "@assets"
- "./src/components" as "@components"
- "./src/api" as "@api"