gulp-conf-sourcemap

1.0.5 • Public • Published

使用方式

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

gulpfile.js 配置:

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;

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-conf-sourcemap

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

606 kB

Total Files

78

Last publish

Collaborators

  • ashley_l