Skip to content

Commit

Permalink
Ignore emacs lockfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
lfender6445 committed Dec 26, 2020
1 parent 27bb24f commit ff95e96
Show file tree
Hide file tree
Showing 2 changed files with 9 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
9 changes: 8 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,12 @@ export default async function getBaseWebpackConfig(
}
},
watchOptions: {
ignored: ['**/.git/**', '**/node_modules/**', '**/.next/**'],
ignored: [
'**/.git/**',
'**/node_modules/**',
'**/.next/**',
emacsLockfilePattern,
],
},
output: {
...(isWebpack5
Expand Down

0 comments on commit ff95e96

Please sign in to comment.