mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Merge pull request #3 from liamortiz/master
Fixing Local Dev Env Issues
This commit is contained in:
commit
5ac0310b74
2
build.js
2
build.js
@ -15,7 +15,7 @@ console.log('Building Pixel Editor');
|
||||
|
||||
|
||||
function copy_images(){
|
||||
gulp.src('./images/')
|
||||
gulp.src('./images/*.png')
|
||||
.pipe(gulp.dest(path.join(BUILDDIR, SLUG)));
|
||||
}
|
||||
|
||||
|
@ -10,13 +10,9 @@ const PORT = process.argv[3] || 3000;
|
||||
app.get('/', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, BUILDDIR, 'index.htm'), {}, function (err) {
|
||||
if(err){
|
||||
console.log('error sending file',err);
|
||||
console.log('error sending file', err);
|
||||
} else {
|
||||
setTimeout(()=>{
|
||||
console.log('closing server');
|
||||
server.close();
|
||||
process.exit();
|
||||
},1000*10);
|
||||
console.log("Server: Successfully served index.html");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user