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
fa373178
Commit
fa373178
authored
Aug 20, 2017
by
JingChao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates ionic/gulpfile.md
Auto commit by GitBook Editor
parent
4f7d3911
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
gulpfile.md
ionic/gulpfile.md
+8
-8
No files found.
ionic/gulpfile.md
View file @
fa373178
...
...
@@ -5,16 +5,16 @@
*
gulpfile.js_文件
-
gulp.js 是一种基于流的,代码优于配置的新一代构建工具,我们项目中集成gulp
-
项目中常用的
`gulp`
命令如下
-
项目中常用的
`gulp`
命令如下
-
`gulp build-dev`
用于构建开发环境,此命令会将项目中的html,scss,js以及其他文件合拼压缩并复制到
`www`
文件夹下
!
[](
/img/gulpjs-build-dev.png
)
-
`gulp build-dev`
用于构建开发环境,此命令会将项目中的html,scss,js以及其他文件合拼压缩并复制到
`www`
文件夹下
!
[](
/img/gulpjs-build-dev.png
)
-
`gulp watch`
用于监听项目中的文件有没有发生变化,文件发生变化后会自动覆盖
`www`
文件夹下的文件
**注:在window上监听html文件会出错,需要从新执行`gulp build-dev`**
!
[](
/img/gulp-watch.png
)
-
`gulp watch`
用于监听项目中的文件有没有发生变化,文件发生变化后会自动覆盖
`www`
文件夹下的文件
**注:在window上监听html文件会出错,需要从新执行`gulp build-dev`**
!
[](
/img/gulp-watch.png
)
-
`gulp build-prod`
构建正式环境环境,与
`gulp build-dev`
相似,区别在于加载的资源文件不同
-
`gulp clean`
移除构建环境清除
`www`
文件夹及其它文件
-
`gulp build-prod`
构建正式环境环境,与
`gulp build-dev`
相似,区别在于加载的资源文件不同
-
`gulp clean`
移除构建环境清除
`www`
文件夹及其它文件
!
[](
/img/gulp-clean.png
)
!
[](
/img/gulp-clean.png
)
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