# gulp-conf-sourcemap

> ```bash npm install --save-dev gulp-conf-sourcemap ```

Latest version **1.0.5** (published 2020-01-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-conf-sourcemap
pnpm add gulp-conf-sourcemap
yarn add gulp-conf-sourcemap
bun add gulp-conf-sourcemap
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2020-01-10 |
| First published | 2019-08-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 591.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | liujing |
| Maintainers | ashley_l |

## Links

- npm: https://www.npmjs.com/package/gulp-conf-sourcemap
- Repository: https://github.com/searchfe/gulp-conf-sourcemap
- Homepage: https://github.com/searchfe/gulp-conf-sourcemap#readme
- Issues: https://github.com/searchfe/gulp-conf-sourcemap/issues
- npm.io page: https://npm.io/package/gulp-conf-sourcemap

## Dependencies (8)

- [del](https://npm.io/package/del.md) ^5.0.0
- [glob](https://npm.io/package/glob.md) ^7.1.3
- [ts2php](https://npm.io/package/ts2php.md) ^0.12.0
- [json2php](https://npm.io/package/json2php.md) 0.0.4
- [through2](https://npm.io/package/through2.md) ^3.0.1
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.8
- [replace-ext](https://npm.io/package/replace-ext.md) ^1.0.0
- [readable-stream](https://npm.io/package/readable-stream.md) ^3.4.0

## Recent versions

- 1.0.5 (latest) — 2020-01-10
- 1.0.4 — 2020-01-10
- 1.0.3 — 2020-01-09
- 1.0.3-2.0 — 2019-08-19
- 1.0.3-1.0 — 2019-08-19
- 1.0.2 — 2019-08-19
- 1.0.1 — 2019-08-16
- 1.0.1-7.0 — 2019-08-16
- 1.0.1-6.0 — 2019-08-16
- 1.0.1-5.0 — 2019-08-16
- 1.0.1-4.0 — 2019-08-16
- 1.0.1-3.0 — 2019-08-16
- 1.0.1-2.0 — 2019-08-15
- 1.0.1-1.0 — 2019-08-14

## README

## 使用方式

```bash
npm install --save-dev gulp-conf-sourcemap
```

`gulpfile.js` 配置：

```javascript
const sourceMap = require('gulp-conf-sourcemap').sourceMap;
const conf = require('./test/module-map.json');

gulp.src(['test/php-files/**/*'])
  .pipe(sourceMap({
    base: 'test/php-files',
    moduleMap: conf.php,
    dest: 'test',
    fileType: '.php',
    mapName: 'php-map.json'
  }))
  .pipe(gulp.dest('test'));


```

> ps: 该插件的作用是通过conf文件的id获取文件的实际路径，并且重新生成map；

---
_Source: https://npm.io/package/gulp-conf-sourcemap · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
