1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 02:06:29 +00:00

fixed eslint error & integrated with prettier as well as formatted the whole codebase (#3450)

This commit is contained in:
Nguyen Viet Hung
2020-02-05 13:28:27 +13:00
committed by GitHub
parent 051ce9e208
commit 592aca1539
186 changed files with 9233 additions and 5565 deletions

View File

@@ -15,7 +15,7 @@ const options = {
quiet: true
}
function startServer () {
function startServer() {
config.plugins.push(new webpack.HotModuleReplacementPlugin())
config.entry.main.unshift(
`webpack-dev-server/client?http://localhost:${port}/`,
@@ -25,7 +25,7 @@ function startServer () {
server = new WebpackDevServer(compiler, options)
return new Promise((resolve, reject) => {
server.listen(port, 'localhost', function (err) {
server.listen(port, 'localhost', function(err) {
if (err) {
reject(err)
}
@@ -48,7 +48,7 @@ function startServer () {
})
}
function startElectron () {
function startElectron() {
spawn(electron, ['--hot', './index.js'], { stdio: 'inherit' })
.on('close', () => {
server.close()