Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CoCo_Code_Op2
next.js
提交
bf157015
N
next.js
项目概览
CoCo_Code_Op2
/
next.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
next.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bf157015
编写于
11月 02, 2018
作者:
R
Radovan Šmitala
提交者:
Tim Neutkens
11月 02, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove WriteFilePlugin (#5541)
It is native by webpack-dev-middleware 3.1.0 up
上级
ad84d23a
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
3 addition
and
42 deletion
+3
-42
packages/next/build/webpack.js
packages/next/build/webpack.js
+0
-7
packages/next/flow-typed/npm/write-file-webpack-plugin_vx.x.x.js
...s/next/flow-typed/npm/write-file-webpack-plugin_vx.x.x.js
+0
-32
packages/next/package.json
packages/next/package.json
+1
-2
packages/next/server/hot-reloader.js
packages/next/server/hot-reloader.js
+2
-1
未找到文件。
packages/next/build/webpack.js
浏览文件 @
bf157015
...
...
@@ -4,7 +4,6 @@ import path from 'path'
import
webpack
from
'
webpack
'
import
resolve
from
'
resolve
'
import
CaseSensitivePathPlugin
from
'
case-sensitive-paths-webpack-plugin
'
import
WriteFilePlugin
from
'
write-file-webpack-plugin
'
import
FriendlyErrorsWebpackPlugin
from
'
friendly-errors-webpack-plugin
'
import
WebpackBar
from
'
webpackbar
'
import
{
getPages
}
from
'
./webpack/utils
'
...
...
@@ -264,12 +263,6 @@ export default async function getBaseWebpackConfig (dir: string, {dev = false, i
dev
&&
new
webpack
.
NoEmitOnErrorsPlugin
(),
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
WriteFilePlugin
({
exitOnErrors
:
false
,
log
:
false
,
// required not to cache removed files
useHashIndex
:
false
}),
// Removes server/client code by minifier
new
webpack
.
DefinePlugin
({
'
process.browser
'
:
JSON
.
stringify
(
!
isServer
)
...
...
packages/next/flow-typed/npm/write-file-webpack-plugin_vx.x.x.js
已删除
100644 → 0
浏览文件 @
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
浏览文件 @
bf157015
...
...
@@ -89,8 +89,7 @@
"webpack-dev-middleware"
:
"3.4.0"
,
"webpack-hot-middleware"
:
"2.22.3"
,
"webpack-sources"
:
"1.2.0"
,
"webpackbar"
:
"2.6.3"
,
"write-file-webpack-plugin"
:
"4.3.2"
"webpackbar"
:
"2.6.3"
},
"peerDependencies"
:
{
"react"
:
"^16.0.0"
,
...
...
packages/next/server/hot-reloader.js
浏览文件 @
bf157015
...
...
@@ -320,7 +320,8 @@ export default class HotReloader {
publicPath
:
`/_next/static/webpack`
,
noInfo
:
true
,
logLevel
:
'
silent
'
,
watchOptions
:
{
ignored
}
watchOptions
:
{
ignored
},
writeToDisk
:
true
}
if
(
this
.
config
.
webpackDevMiddleware
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录