Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
d831e6d3
Commit
d831e6d3
authored
Jul 17, 2017
by
Arunoda Susiripala
Committed by
GitHub
Jul 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Webpack's ModuleConcatenationPlugin plugin doesn't work well with HMR. (#2584)
So, now we only use it for production.
parent
dba24dac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
webpack.js
server/build/webpack.js
+2
-2
No files found.
server/build/webpack.js
View file @
d831e6d3
...
...
@@ -131,8 +131,7 @@ export default async function createCompiler (dir, { dev = false, quiet = false,
}),
new
PagesPlugin
(),
new
DynamicChunksPlugin
(),
new
CaseSensitivePathPlugin
(),
new
webpack
.
optimize
.
ModuleConcatenationPlugin
()
new
CaseSensitivePathPlugin
()
]
if
(
dev
)
{
...
...
@@ -156,6 +155,7 @@ export default async function createCompiler (dir, { dev = false, quiet = false,
sourceMap
:
false
})
)
plugins
.
push
(
new
webpack
.
optimize
.
ModuleConcatenationPlugin
())
}
const
nodePathList
=
(
process
.
env
.
NODE_PATH
||
''
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment