.map files included in published wwwroot/dist/ #1001

Closed
opened 2025-08-09 17:18:29 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @HaraldMuehlhoffCC on 2/19/2017

I was quite stunned for a second that I found the map files included in my published ReactReduxSPA.

The publishOptions exclude entry in project.json seems to be ignored since the move to the new (old) .pubxml file.

  "publishOptions": {
    "include": [
      "appsettings.json",
      "ClientApp/dist",
      "Views",
      "web.config",
      "wwwroot"
    ],
    "exclude": [
      "wwwroot/dist/*.map"
    ]
  },

I tried to add something like the following to my CustomProfile.pubxml:

    <ExcludeFilesFromDeployment>
      wwwroot\dist\*.map
    </ExcludeFilesFromDeployment>

(or wwwroot/dist/*.map ...) but so far was out of luck.

The map files are older than the other files in dist but they are copied nonetheless.

For now I'm manually deleting the map files but an automatic solution would be preferred ;)

PS: BTW - thanks for a great start template! I've rebuilt my complete website as a universal ReactReduxSPA ;) (www.carecom.de)

*Originally created by @HaraldMuehlhoffCC on 2/19/2017* I was quite stunned for a second that I found the `map` files included in my published ReactReduxSPA. The `publishOptions exclude` entry in `project.json` seems to be ignored since the move to the new (old) `.pubxml` file. ``` "publishOptions": { "include": [ "appsettings.json", "ClientApp/dist", "Views", "web.config", "wwwroot" ], "exclude": [ "wwwroot/dist/*.map" ] }, ``` I tried to add something like the following to my `CustomProfile.pubxml`: ``` <ExcludeFilesFromDeployment> wwwroot\dist\*.map </ExcludeFilesFromDeployment> ``` (or `wwwroot/dist/*.map` ...) but so far was out of luck. The `map` files are older than the other files in `dist` but they are copied nonetheless. For now I'm manually deleting the `map` files but an automatic solution would be preferred ;) PS: BTW - thanks for a great start template! I've rebuilt my complete website as a universal ReactReduxSPA ;) (www.carecom.de)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1001
No description provided.