page-skeleton-webpack-plugin icon indicating copy to clipboard operation
page-skeleton-webpack-plugin copied to clipboard

fix: 修复vue-cli3.0项目端口被占用的bug #97

Open Kntt opened this issue 6 years ago • 11 comments

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? yes
New tests added? not needed
Fixed tickets comma-separated list of tickets fixed by the PR, if any
License MIT

Description

修复vue-cli3.0项目, 端口被占用的bug; 测试发现compiler.hooks.entryOption被执了两次,没找到执行两次的原因 于是:在createServer方法中判断插件的server是否被创建,没创建的时, 正常执行,创建过就什么都不做了

--

Please, don't submit /dist files with your PR!

Kntt avatar May 11 '19 05:05 Kntt

可以的,大神

hooir-dev avatar May 12 '19 13:05 hooir-dev

Nice 找了一下午的端口占用 终于解决

R-Von avatar Jun 17 '19 09:06 R-Von

占用

这个有可能是webpack的bug, 之前没有这个问题, webpack的hook被执行了两次。 另外这个pr合并太慢了。。。。

Kntt avatar Jun 18 '19 02:06 Kntt

怎么解决

tsoil avatar Jul 02 '19 03:07 tsoil

@Kntt 请问合并了吗?

gongph avatar Jul 17 '19 03:07 gongph

@gongph 还没呢, 一直没人处理呢

Kntt avatar Jul 17 '19 03:07 Kntt

@gongph 还没呢, 一直没人处理呢

我刚刚的做法是,把代码复制到 node_modules 源码里暂时启动了项目。/抱拳

gongph avatar Jul 17 '19 03:07 gongph

@gongph 还没呢, 一直没人处理呢

我刚刚的做法是,把代码复制到 node_modules 源码里暂时启动了项目。/抱拳

这样可以暂时的解决, 每次install依赖都需要手动改一下, 可以暂时过渡用

@HiuYanChong 抽时间合并一下吧,困扰很多人了

Kntt avatar Jul 17 '19 03:07 Kntt

@Kntt 问个问题呗,预览界面啥都没有? image

gongph avatar Jul 17 '19 03:07 gongph

查看控制台,是这个错: image

gongph avatar Jul 17 '19 03:07 gongph

@gongph 改完了得重新build

Kntt avatar Jul 22 '19 01:07 Kntt