Skip to content

Commit

Permalink
Merge pull request #82 from eternal-flame-AD/buildfix
Browse files Browse the repository at this point in the history
add a new line when merging class files
  • Loading branch information
_eternal_flame authored Jul 10, 2018
2 parents d9fdbc1 + 741d2cb commit 5e16b59
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build/build-dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ for(let array of PxerUtility.groupFile(
Fs.writeFileSync(
Join(__dirname,'../dist/pxer-core.js'),
PxerUtility.babelTransform(
Buffer.concat(fileList.map(path=>Fs.readFileSync(path)))
Buffer.concat(
fileList.map(
path=>Buffer.concat([
Fs.readFileSync(path),
Buffer.from('\n'),
])
)
)
)
);
console.log('Build ./dist/');
Expand Down

0 comments on commit 5e16b59

Please sign in to comment.