Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

最新版本(0.5.1)transport后路径出现双反斜杠 #96

Open
lijuan900 opened this issue Mar 24, 2015 · 8 comments
Open

最新版本(0.5.1)transport后路径出现双反斜杠 #96

lijuan900 opened this issue Mar 24, 2015 · 8 comments

Comments

@lijuan900
Copy link

define("home/page/index", [ "....\common/library.js", "....\common/cpt/pageScroll", "....\common/cpt/bannerCurrent.js", "....\common/search.js", "....\common/cpt/slideShow", "....\common/cpt/tab", "..\home.js", "..\page.js", "....\common/cpt/slide", "..\auth.js", "....\common/cpt/popupFullScreen", "....\login/login.js" ], function(require, exports, module) {
......
}
这个双反斜杠只出现在最开始的define[]里。
往前降版本重新安装transport,发现到0.2.6才正常。

@lijuan900 lijuan900 changed the title 最新版本(0.5.1)grunt后出现 路径斜杠 有问题 最新版本(0.5.1)transport后路径出现双斜杠 Mar 24, 2015
@lijuan900 lijuan900 changed the title 最新版本(0.5.1)transport后路径出现双斜杠 最新版本(0.5.1)transport后路径出现双反斜杠 Mar 24, 2015
@bodyno
Copy link

bodyno commented May 8, 2015

我也遇到了同样的问题,
发现这个插件还是有很多bug,
不好用,差评

@zlzdp
Copy link

zlzdp commented Sep 8, 2015

同样的问题

@Jesseyx
Copy link

Jesseyx commented Oct 19, 2015

同样的问题,你们怎么解决的?

@vrbvillor
Copy link

对啊,打包正常了,虽然都得改成相对路径,但也没什么大不了的,顶级路径完全就等于是废了,别名也基本无用,但转化成反斜线之后,控制台就会报错,虽然抽取依赖都正常了(使用顶级写法的时候无法深层抽取),但是这报错让人看着很不爽。

@ptxl
Copy link

ptxl commented Dec 24, 2015

使用 0.4.1版的transport也没有问题,我在这个问题上坑大了(┬_┬)

@Xheldon
Copy link

Xheldon commented Jan 7, 2016

同样的问题。

@demon-cai
Copy link

只能修改源码了,不知道这样改是否会引发其他问题,不过确实解决了这个问题。
修改tasks\lib\scipt.js 第88行
return unixy(dep.replace(/.js$/, ''));

@vrbvillor
Copy link

太可气了,作者好像蒸发了一样,都那么长时间没更新代码了,估计他自己都不用这个东西了,我看我们还是改去学FIS吧。

sunylt added a commit to sunylt/grunt-cmd-transport that referenced this issue Dec 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants