Skip to content
New issue

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

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

Already on GitHub? # to your account

jquery插件没法加载进来 #15

Open
guohuihot opened this issue Dec 28, 2015 · 3 comments
Open

jquery插件没法加载进来 #15

guohuihot opened this issue Dec 28, 2015 · 3 comments

Comments

@guohuihot
Copy link

qq 20151228174155
像这种插件加载不进来

@chenmnkken
Copy link
Owner

建议多看看文档和例子

@guohuihot
Copy link
Author

$.seajsCombo({
plugins : [{
    ext : [ '.tpl' ],
    use : [{
            plugin : $.uglify,
            param : uglifyConfig
    }]
}]
})

您好,我想把加载的文件压缩,不知道这样写对不?

@chenmnkken
Copy link
Owner

  1. $.seajsCombo 这个 $ 是干吗的
  2. uglify 不需要这么用

应该像这样:

gulp.task( 'combo', function () {
    return gulp.src( 'hello.js' )
       .pipe( seajsCombo() )
       .pipe( uglify() )
       .pipe( gulp.dest('dist') )
});

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants