Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hel-guide
app
Commits
debe7fc5
Commit
debe7fc5
authored
Aug 15, 2017
by
Anonymous
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates ionic/gulpfile.md
Auto commit by GitBook Editor
parent
e61000ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
gulpfile.md
ionic/gulpfile.md
+9
-6
No files found.
ionic/gulpfile.md
View file @
debe7fc5
...
...
@@ -8,9 +8,12 @@
*
### gulpfile.js_文件
-
`gulp命令`
npm install gulp-jshint --save-dev jshint 安装失败问题: 解决方案: npm install --save-dev jshint gulp-jshint npm install gulp-sass --save-dev 编译sass文件 npm install gulp-concat --save-dev 合并js npm install gulp-uglify --save-dev 通过UglifyJS来压缩JS文件. npm install gulp-rename --save-dev 重命名文件的插件,当要把一个文件存储为不同版本时可以使用。比如在需要一个style.css同时你有需要一个style.min.css npm install gulp-autoprefixer --save-dev 使用Autoprefixer来补全浏览器兼容的css。 gulp-minify-css 压缩css,最终是调用clean-css 参考:http://www.ydcss.com/archives/41 gulp-gzip 压缩zip gulp-imagemin 压缩png/jpg/git/svg 格式图片文件 gulp-util gulp常用的工具库 在安装gulp时默认已经安装,可以直接使用 gulp-clean 清理档案
作者: shuangsnow
链接:http://www.imooc.com/article/13843
来源:慕课网
本文原创发布于慕课网 ,转载请注明出处,谢谢合作!
-
`npm install gulp-jshint --save-dev jshint 安装失败问题: 解决方案: npm install --save-dev jshint gulp-jshint`
-
`npm install gulp-sass --save-dev 编译sass文件`
-
`npm install gulp-concat --save-dev 合并js`
-
`npm install gulp-uglify --save-dev 通过UglifyJS来压缩JS文件. `
-
`npm install gulp-rename --save-dev 重命名文件的插件,当要把一个文件存储为不同版本时可以使用。比如在需要一个style.css同时你有需要一个style.min.css`
-
`npm install gulp-autoprefixer --save-dev 使用Autoprefixer来补全浏览器兼容的css。`
-
`gulp-gzip 压缩zip`
-
`gulp-imagemin 压缩png/jpg/git/svg 格式图片文件`
-
`gulp-clean 清理档案`
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment