DEV Community

Discussion on: Create Chrome Extension in React

Collapse
 
deepakshrma profile image
Deepak Vishwakarma

you don need all these script.
To pass u u can create .env file

REACT_APP_INLINE_RUNTIME_CHUNK=false
REACT_APP_GENERATE_SOURCEMAP=false
REACT_APP_BUILD_PATH=dist
Enter fullscreen mode Exit fullscreen mode

and for move file

MACHINE="$(uname -s)"
if [[ $MACHINE =~ "Darwin" ]]; then
    mv dist/index.html dist/popup.html
else
    move dist\index.html dist\popup.html
fi
Enter fullscreen mode Exit fullscreen mode
Collapse
 
fishsticks89 profile image
fishsticks89

Why did you change generate sourcemap to false?