fex-team / fis3-postpackager-loader

静态资源前端加载器
BSD 2-Clause "Simplified" License
82 stars 38 forks source link

Update pack.js #53

Closed johnx7271 closed 8 years ago

johnx7271 commented 8 years ago

rSourceMap is used to strip the sourcemap embeding in composite js files, so the g flag is not needed, and the extra newline should be added to the pattern, so to remove it with the entire line.

2betop commented 8 years ago

之前是担心 sourceMap 的行数对不上号,这事还得确认。

johnx7271 commented 8 years ago

你可以测试一下。不过,我看没有问题。