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

评论:使用 gulp 构建一个项目 #16

Closed
nimoc opened this issue Apr 6, 2015 · 20 comments
Closed

评论:使用 gulp 构建一个项目 #16

nimoc opened this issue Apr 6, 2015 · 20 comments
Labels

Comments

@nimoc
Copy link
Owner

nimoc commented Apr 6, 2015

请在此处留下你对 使用 gulp 构建一个项目 的评论

@nimoc nimoc added the 评论 label Apr 6, 2015
@Gaohaoyang
Copy link

Gaohaoyang commented Jun 29, 2015

为什么不用严格模式?
每一行后面都没有分号,看着好难受


2016.06.15
时隔一年,我再次看到当年的这个评论……如今我写代码也不加分号了,哈哈。

@Softor
Copy link

Softor commented Jul 21, 2015

为什么在贴出的 package.json 的内容里么有出现 gulp-util ?

@nimoc
Copy link
Owner Author

nimoc commented Jul 21, 2015

@lengziyu
Copy link

你好,我用了你的gulp-demo ,然后gulp命名后,打开什么地址预览?

@nimoc
Copy link
Owner Author

nimoc commented Dec 31, 2015

@lengziyu
https://github.com/nimojs/gulp-demo/tree/master/html 中直接打开 HTML 文件预览,

@junhey
Copy link

junhey commented Jan 22, 2016

可以报所有的npm install全部写出来,便于安装

安装插件
npm install gulp-util gulp-uplify gulp-watch-path stream-combiner2 gulp-sourcemaps gulp-minify-css gulp-autoprefixer gulp-less gulp-ruby-sass gulp-imagemin gulp-handlebars gulp-wrap gulp-declare

@jillsGit
Copy link

sass部分貌似不行

@chongyuan
Copy link

安装gulp-uglify等依赖之后,package.json的devDependencies并没有更新,是我哪里操作有误吗?

@nimoc
Copy link
Owner Author

nimoc commented Feb 26, 2016

@chongyuan

–save:模块名将被添加到dependencies,可以简化为参数-S。
–save-dev: 模块名将被添加到devDependencies,可以简化为参数-D。

@stevenlvcrow
Copy link

既然会把代码压缩,那么在index的引入代码也要相应变化。这块该怎么写

@nimoc
Copy link
Owner Author

nimoc commented Jun 5, 2016

@stevenlvcrow 什么意思
是指 index.html 中引入路径要自动变成 dist/a.js ?

@yzren
Copy link

yzren commented Aug 24, 2016

您好,我想请问一下,为什么sass编译不成功

@nimoc
Copy link
Owner Author

nimoc commented Aug 24, 2016

@yzren 报错信息 node版本 gulp 版本 插件版本发一下

@yzren
Copy link

yzren commented Aug 24, 2016

node :3.8.9
gulp :3.9.1

不报任何错误信息,没有反应,编译不出来,less和css 还有js都是没有问题的。谢谢啦

@yzren
Copy link

yzren commented Aug 24, 2016

qq 20160824182323

@nimoc
Copy link
Owner Author

nimoc commented Aug 25, 2016

@yzren 如果一直卡主可能是 sass 编译速度慢的原因,否则会报错。

@luuman
Copy link

luuman commented Sep 2, 2016

不是有自动刷新的插件吗?

@nimoc nimoc closed this as completed Oct 5, 2016
@seed-fe
Copy link

seed-fe commented Dec 11, 2016

使用stream-combiner2输出错误信息的时候遇到lineNumber: undefined,错误信息也只有:unable to minify javascript,没有详细的错误信息,请问这可能是什么原因啊?

@nimoc
Copy link
Owner Author

nimoc commented Dec 12, 2016

@seed-fe 可以试着一行行删除要压缩的JS源码排查是哪一行无法亚索

@seed-fe
Copy link

seed-fe commented Dec 12, 2016

@nimojs 我把gulp-uglify换成低版本的就好了

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

No branches or pull requests