https://github.com/cenfun/source-map-report
source-map-report
https://github.com/cenfun/source-map-report
html report source-map
Last synced: about 1 month ago
JSON representation
source-map-report
- Host: GitHub
- URL: https://github.com/cenfun/source-map-report
- Owner: cenfun
- License: mit
- Created: 2022-09-26T02:05:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-01T10:50:10.000Z (over 3 years ago)
- Last Synced: 2024-10-18T08:39:14.801Z (over 1 year ago)
- Topics: html, report, source-map
- Language: Vue
- Homepage: https://cenfun.github.io/source-map-report/
- Size: 230 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# source-map-report
> preview source map file in html
## Online Page
[https://cenfun.github.io/source-map-report/](https://cenfun.github.io/source-map-report/)
## Install
```sh
npm i source-map-report
```
## Usage
```js
const SMR = require('source-map-report');
SMR({
name: "My source map report",
outputFile: "path-to/my-report.html",
sourcesAndMaps: {
"source-file-name.js": "source-file-content",
"source-file-name.js.map": "source-map-content",
"source-file-name2.js": "source-file-content2",
"source-file-name2.js.map": "source-map-content2"
}
});
```
see [test/test.js](/test/test.js)