Skip to content

Commit

Permalink
Ignore emacs lockfiles
Browse files Browse the repository at this point in the history
- also updates gitignore

Fixes: #15278
  • Loading branch information
lfender6445 committed Dec 29, 2020
1 parent 27bb24f commit 43c7e6c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ test/**/next-env.d.ts

# Editors
**/.idea
**/#*

# examples
examples/**/out
Expand Down
10 changes: 9 additions & 1 deletion packages/next/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,8 @@ export default async function getBaseWebpackConfig(
callback()
}

const emacsLockfilePattern = '**/.#*'

let webpackConfig: webpack.Configuration = {
externals: !isServer
? // make sure importing "next" is handled gracefully for client
Expand Down Expand Up @@ -782,7 +784,13 @@ export default async function getBaseWebpackConfig(
}
},
watchOptions: {
ignored: ['**/.git/**', '**/node_modules/**', '**/.next/**'],
ignored: [
'**/.git/**',
'**/node_modules/**',
'**/.next/**',
// can be removed after https://github.com/paulmillr/chokidar/issues/955 is released
emacsLockfilePattern,
],
},
output: {
...(isWebpack5
Expand Down

0 comments on commit 43c7e6c

Please sign in to comment.