liberte
v1.1.3
Published
Liberté is a react type script project has built with CRA and run with webpack dev server, so you can add your custom webpack config without "react-script eject".
Downloads
21
Maintainers
Readme
Liberté
Liberté is a react type script project built with CRA and runs with webpack dev server, so you can add your custom webpack config without "react-script eject".
I named this package Liberte to express my protest against the prevailing conditions in Iran. Long live "Woman Life Freedom"
https://en.wikipedia.org/wiki/Mahsa_Amini_protests
Installation
1.Install the latest version of the package from npm:
npm i liberte
2.Update the existing calls to react-scripts in the scripts section of your package.json to use the liberte CLI:
"scripts": {
- "start": "react-scripts start"
+ "start": "liberte-start"
- "build": "react-scripts build"
+ "build": "liberte-build"
+ "liberte": "liberte-config"
}
3.Add this line to tsconfig.json
"compilerOptions":
{...
"outDir": "./dist/",
...}
5.Run this command in terminal
npm run liberte
6.If you have babelrc and webpack config from before, liberte keep your config as a comment, so you can uncomment yours and add them again
🚀 About Me
I'm a front end developer...