If you want to pass command line arguments to npm
scripts, use the --
separator. Example…
npm run build -- --prefix-paths
This will pass the --prefix-paths
to the build
script. Please note the double --
in the command.
Byte sized tech know-how.
If you want to pass command line arguments to npm
scripts, use the --
separator. Example…
npm run build -- --prefix-paths
This will pass the --prefix-paths
to the build
script. Please note the double --
in the command.
Copyright © 2024 Txt