Must a sourcemap have a .map extension?

后端 未结 2 985
情歌与酒
情歌与酒 2021-01-21 04:51

If I create a source map, must I give it a .map extension, or could I call it .foo, as long as it has the correct headers?

If someone could point to documentation on thi

2条回答
  •  日久生厌
    2021-01-21 05:21

    It can be any extension, but .map is the most used. By convention it will have the same name as the target file.

    Also the documentation for the Source Maps Proposal has been moved from google docs. This is the new link: https://sourcemaps.info/spec.html

提交回复
热议问题