Skip to content

Commit

Permalink
0.3.2 Fix \n
Browse files Browse the repository at this point in the history
  • Loading branch information
59naga committed Sep 28, 2015
1 parent d5fa96d commit 1b55fa5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"name": "onefile",
"bin": "onefile",
"description": "bower_components compressor",
"version": "0.3.1",
"version": "0.3.2",

"engines": {
"node": ">=0.12"
Expand Down
2 changes: 1 addition & 1 deletion src/compresser.coffee
Expand Up @@ -24,7 +24,7 @@ compresser= ({cwd,mangle,detachSourcemap,outputBytes}={})->
fromString: yes

if detachSourcemap
sourceMapRegexp= /\/\/# sourceMappingURL=data:application\/json;base64,.+$/g
sourceMapRegexp= /\/\/# sourceMappingURL=data:application\/json;base64,.+$/m
sourceMapInline= (source.match sourceMapRegexp)?[0].split(',')[1]
sourceMap= JSON.parse (new Buffer(sourceMapInline,'base64')).toString()
mangleOptions.inSourceMap= sourceMap
Expand Down
2 changes: 1 addition & 1 deletion test/api.spec.coffee
Expand Up @@ -26,7 +26,7 @@ describe 'onefile',->
beforeAll (done)->
$bowerInstall 'bootstrap#3.3.5',done

assumedMaximam= 861808
assumedMaximam= 861809
summaries= [
/kB bower_components\/jquery\/dist\/jquery.js/
/kB bower_components\/bootstrap\/dist\/js\/bootstrap.js/
Expand Down

0 comments on commit 1b55fa5

Please sign in to comment.