There is no rule where you run your scripts/commands whether in your editor our in a pipeline.
Basically you have a build command which you run locally AND within the pipeline.
As I mentioned a the end of my article.
Just create a build which runs a postbuild-script.
In this postbuild-script copy the generated source-map files to a 'hidden' folder which you can configure via build-command in each specific environment (in a folder on your machine in local dev-environment AND a hidden folder in protected internal network folder when running in pipeline).
that's it.
hope it helped you.