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
bf157015
Commit
bf157015
authored
Nov 02, 2018
by
Radovan Šmitala
Committed by
Tim Neutkens
Nov 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove WriteFilePlugin (#5541)
It is native by webpack-dev-middleware 3.1.0 up
parent
ad84d23a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
42 deletions
+3
-42
webpack.js
packages/next/build/webpack.js
+0
-7
write-file-webpack-plugin_vx.x.x.js
...s/next/flow-typed/npm/write-file-webpack-plugin_vx.x.x.js
+0
-32
package.json
packages/next/package.json
+1
-2
hot-reloader.js
packages/next/server/hot-reloader.js
+2
-1
No files found.
packages/next/build/webpack.js
View file @
bf157015
...
@@ -4,7 +4,6 @@ import path from 'path'
...
@@ -4,7 +4,6 @@ import path from 'path'
import
webpack
from
'webpack'
import
webpack
from
'webpack'
import
resolve
from
'resolve'
import
resolve
from
'resolve'
import
CaseSensitivePathPlugin
from
'case-sensitive-paths-webpack-plugin'
import
CaseSensitivePathPlugin
from
'case-sensitive-paths-webpack-plugin'
import
WriteFilePlugin
from
'write-file-webpack-plugin'
import
FriendlyErrorsWebpackPlugin
from
'friendly-errors-webpack-plugin'
import
FriendlyErrorsWebpackPlugin
from
'friendly-errors-webpack-plugin'
import
WebpackBar
from
'webpackbar'
import
WebpackBar
from
'webpackbar'
import
{
getPages
}
from
'./webpack/utils'
import
{
getPages
}
from
'./webpack/utils'
...
@@ -264,12 +263,6 @@ export default async function getBaseWebpackConfig (dir: string, {dev = false, i
...
@@ -264,12 +263,6 @@ export default async function getBaseWebpackConfig (dir: string, {dev = false, i
dev
&&
new
webpack
.
NoEmitOnErrorsPlugin
(),
dev
&&
new
webpack
.
NoEmitOnErrorsPlugin
(),
dev
&&
new
UnlinkFilePlugin
(),
dev
&&
new
UnlinkFilePlugin
(),
dev
&&
new
CaseSensitivePathPlugin
(),
// Since on macOS the filesystem is case-insensitive this will make sure your path are case-sensitive
dev
&&
new
CaseSensitivePathPlugin
(),
// Since on macOS the filesystem is case-insensitive this will make sure your path are case-sensitive
dev
&&
new
WriteFilePlugin
({
exitOnErrors
:
false
,
log
:
false
,
// required not to cache removed files
useHashIndex
:
false
}),
// Removes server/client code by minifier
// Removes server/client code by minifier
new
webpack
.
DefinePlugin
({
new
webpack
.
DefinePlugin
({
'process.browser'
:
JSON
.
stringify
(
!
isServer
)
'process.browser'
:
JSON
.
stringify
(
!
isServer
)
...
...
packages/next/flow-typed/npm/write-file-webpack-plugin_vx.x.x.js
deleted
100644 → 0
View file @
ad84d23a
// flow-typed signature: 4a61661df41490b27db4f4aa0c03929e
// flow-typed version: <<STUB>>/write-file-webpack-plugin_v4.2.0/flow_v0.73.0
/**
* This is an autogenerated libdef stub for:
*
* 'write-file-webpack-plugin'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare
module
'write-file-webpack-plugin'
{
declare
module
.
exports
:
any
;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare
module
'write-file-webpack-plugin/dist/index'
{
declare
module
.
exports
:
any
;
}
// Filename aliases
declare
module
'write-file-webpack-plugin/dist/index.js'
{
declare
module
.
exports
:
$Exports
<
'write-file-webpack-plugin/dist/index'
>
;
}
packages/next/package.json
View file @
bf157015
...
@@ -89,8 +89,7 @@
...
@@ -89,8 +89,7 @@
"webpack-dev-middleware"
:
"3.4.0"
,
"webpack-dev-middleware"
:
"3.4.0"
,
"webpack-hot-middleware"
:
"2.22.3"
,
"webpack-hot-middleware"
:
"2.22.3"
,
"webpack-sources"
:
"1.2.0"
,
"webpack-sources"
:
"1.2.0"
,
"webpackbar"
:
"2.6.3"
,
"webpackbar"
:
"2.6.3"
"write-file-webpack-plugin"
:
"4.3.2"
},
},
"peerDependencies"
:
{
"peerDependencies"
:
{
"react"
:
"^16.0.0"
,
"react"
:
"^16.0.0"
,
...
...
packages/next/server/hot-reloader.js
View file @
bf157015
...
@@ -320,7 +320,8 @@ export default class HotReloader {
...
@@ -320,7 +320,8 @@ export default class HotReloader {
publicPath
:
`/_next/static/webpack`
,
publicPath
:
`/_next/static/webpack`
,
noInfo
:
true
,
noInfo
:
true
,
logLevel
:
'silent'
,
logLevel
:
'silent'
,
watchOptions
:
{
ignored
}
watchOptions
:
{
ignored
},
writeToDisk
:
true
}
}
if
(
this
.
config
.
webpackDevMiddleware
)
{
if
(
this
.
config
.
webpackDevMiddleware
)
{
...
...
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