aralejs / aralejs.github.io

开放、简单、易用的前端基础类库
http://aralejs.github.io
MIT License
1.37k stars 321 forks source link

打包的arale/dialog时候jquery文件 include 不进来 #334

Closed elover closed 10 years ago

elover commented 10 years ago

main.js

define(function (require) {
    var $ = require("$");
    var dialog = require("arale/dialog/1.2.5/dialog");
})
//spm 里的配置
"spm": {
        "include": "all",
        "alias": {
            "$": "jquery/jquery/1.10.1/jquery",
            "$-debug": "jquery/jquery/1.10.1/jquery-debug",
            "overlay": "arale/overlay/1.1.4/overlay",
            "mask": "arale/overlay/1.1.4/mask",
            "easing": "arale/easing/1.0.0/easing",
            "events": "arale/events/1.1.0/events",
            "templatable": "arale/templatable/0.9.1/templatable"
        },
        "output": ["main.js"],
        "styleBox": true
    }

打包时警告

Task: "concat:js" (concat) task
           warn: file $ not found
           warn: file $-debug not found
       concated: 2 files

已经安装过jquery/jquery/1.10.1/jquery

求助怎么将jquery也打包进来呢?

elover commented 10 years ago

这个问题是不是问的有点傻,都没有人回的节奏?

popomore commented 10 years ago

这个错误是依赖的文件定义的 $,比如 widget,但 dialog 配的 alias 应该会打进来吧,你看下输出的代码,没有 jquery?