Skip to content

Commit

Permalink
chore: nodemon restart on .env
Browse files Browse the repository at this point in the history
  • Loading branch information
denchiklut committed Oct 13, 2024
1 parent a7a4938 commit 306987a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"watch": ["dist/server", ".env"]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { join } from 'path'
import { existsSync, readFileSync } from 'fs'
import { ROOT_DIR } from './env'
import { ROOT_DIR } from '../env'
import { safeUrl } from './url'

const sslKeyPath = join(ROOT_DIR, 'certs/key.pem')
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion webpack/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './env'
export * from './devServer'
export * from './dev-server'
export * from './optimization'
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Configuration } from 'webpack'
import { IS_PROD } from './env'
import { IS_PROD } from '../env'

export const optimization: Configuration['optimization'] = IS_PROD
? { splitChunks: { chunks: 'all' } }
Expand Down

0 comments on commit 306987a

Please sign in to comment.