Gulp-sourcemaps not creating a sourcemap file?

后端 未结 1 1125
遥遥无期
遥遥无期 2021-01-11 20:13

I\'m trying to get Gulp sourcemaps to write files, but I can\'t see these files anywhere. If any new files were created in the working tree, I would see them in git st

1条回答
  •  心在旅途
    2021-01-11 20:58

    Using the sourcemaps.write() method the way you do appends a source maps line to the all.js file. If you want to write external source map files, you'll need to pass the path to the sourcemaps.write() method:

    sourcemaps.write('../maps')
    

    https://www.npmjs.com/package/gulp-sourcemaps

    0 讨论(0)
提交回复
热议问题