Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thomasthiebaud/creapp
Minimalist and flexible tool to set up modern web apps
https://github.com/thomasthiebaud/creapp
create-react-app react web webapp webpack webpack5
Last synced: 20 days ago
JSON representation
Minimalist and flexible tool to set up modern web apps
- Host: GitHub
- URL: https://github.com/thomasthiebaud/creapp
- Owner: thomasthiebaud
- License: mit
- Created: 2021-10-14T11:43:39.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-15T09:40:11.000Z (about 3 years ago)
- Last Synced: 2024-10-03T08:11:07.384Z (about 1 month ago)
- Topics: create-react-app, react, web, webapp, webpack, webpack5
- Language: JavaScript
- Homepage:
- Size: 397 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CREAPP
Minimalist and flexible tool to set up modern web apps. Inspired by [Create React App](https://create-react-app.dev/)
## Philosophy
- Use default configuration as much as possible
- One dependency
- Easy to extends## How to create an App?
```
npx @creapp/cli init
```## How to extend the configuration?
`@creapp/config-react` just exports a normal webpack configuration. You can import it and tweak it at will
```js
const getConfig = require("@creapp/config-react");
const config = getConfig(/* You can force NODE_ENV here */);// Do something with the defaultConfig here
config.xxx = abc;
// For example to have less details when running start/build
config.stats = "minimal";module.exports = config;
```The webpack configuration is detailed on [the docs](https://webpack.js.org/configuration/)
## How to change the build/start scripts?
`creapp build` and `creapp start` are tiny CLI helpers that use `webpack` and `webpack-dev-server` under the hood.
You can replace them by anything that understand a webpack configuration.**IMPORTANT** You need to set `process.env.NODE_ENV` to `production` before running a production build