This repository has been archived by the owner on Aug 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 179
支持构建依赖的模块 #883
Comments
理论上你模块的 debug 文件才会指向 jquery 的 debug 文件,不会 404 这东西是给调试用的,少了一步压缩 |
对,但是jquery-debug.js不存在,怎么调试? |
jquery 也要构建的 |
jquery是用 |
这下明白了 |
spm build --with-deps ? |
集成到 spm 时,注意下 seajs 及其插件打包的问题, hotoo/spm-build-deps#8 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
增加一个参数,可构建所有依赖的模块,目标目录和原来一样
以下是原文
关于文件后缀debug引发的思考
比如spm中的jquery模块,下载安装之后,在项目里
使用spm构建之后:
导致jquery-debug.js文件404错误了。
这个错误本来是可以避免的,因为在jquery的package里已经指明了入口文件为jquery.js。spm上的包都是如此,导致项目require的时候全部出错404。
The text was updated successfully, but these errors were encountered: