Skip to content

searchfe/gulp-conf-sourcemap

Repository files navigation

使用方式

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;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published