“react masquer le code source” Réponses codées

react masquer le code source

in package.json file as follows.
add GENERATE_SOURCEMAP=false to build

scripts: {
"build": "GENERATE_SOURCEMAP=false react-scripts build"
}
Django Al sa3edy

Comment masquer la source du projet React

"build": "GENERATE_SOURCEMAP=false react-scripts build",
"winBuild": "set \"GENERATE_SOURCEMAP=false\" && react-scripts build",

Use npm run build for creating build on Linux.

Use npm run winBuild for creating build on Windows.
Glamorous Goose

Hide React Source


In in package.json (Windows)

"scripts": {
...
    "cleanBuild": "rimraf ./build/*",
    "build": "npm run cleanBuild && set \"GENERATE_SOURCEMAP=false\" && react-scripts build ",
Graceful Goosander

Réponses similaires à “react masquer le code source”

Questions similaires à “react masquer le code source”

Plus de réponses similaires à “react masquer le code source” dans JavaScript

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code