
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
fullstack-cra-app-template
Advanced tools
A CRA-based template that can customize webpack configuration and node.js scripts.
A CRA-based template that can customize webpack configuration and node.js scripts.
This is a React application created using create-react-app 5+, which can configure webpack independently and use Node.js scripts to export a .zip package.
This template enhances the scripts from package.json, without breaking the structure of CRA itself. It is used to remove the external React and ReactDOM libraries so that the bundles are completely separated from the React vendor.
fullstack-cra-app-template/
├── README.md
├── LICENSE
├── tsconfig.json
├── custom.webpack.config.js
├── package-lock.json
├── package.json
├── my-package/<your_package_name>.zip
├── scripts/
├── public/
├── src/
│ ├── index.tsx
│ └── ...
└──
Make sure if NODEJS is installed on your computer.
$ npm install
It will create node_module folder in this all dependency files will be install with this command.
$ npm run start
$ npm run build
♥️ It will automatically generate a compressed package <your_package_name>.zip with the same name as your current repository, and put it in the my-package folder, you can modifyThename property in package.json configures this name
$ npm run export
For related operation commands, please refer to create-react-app
Excluding dependencies from the output bundles, you could change the package.json like this:
The buildConfig property will be linked to the Webpack configuration.
{
...
"buildConfig": {
"externals": {
"react": "React",
"react-dom": "ReactDOM"
}
},
...
}
If you want to cancel the external files setting, please change it to:
{
...
"buildConfig": {
"externals": ""
},
...
}
a) Has node_modules folder, just do it directly.
If running npm run <script> fails because Node has been upgraded, use npx -p node@<version> <your_script> to run:
such as
$ npx -p node@15.14.0 npm run dev
$ npx -p node@14.21.3 npm run start
b) If there is no node_modules folder, using npm install --legacy-peer-deps is still unsuccessful. After deleting the dependencies of package.json and remove file package-lock.json, use the following command to reinstall:
$ npm install <package1> <package2> --legacy-peer-deps
$ npm install --save-dev <package1> <package2> --legacy-peer-deps
c) NPM or NPX cache error
View the location of the local npm cache:
$ npm config get cache
Clear cache (npm and npx)
$ npm cache clean --force
or
$ rm -rf ~/.npm
Check cache
$ npm cache verify
Licensed under the MIT.
FAQs
A CRA-based template that can customize webpack configuration and node.js scripts.
We found that fullstack-cra-app-template demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.

Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.

Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.