Add a gulp build:before task
See original GitHub issueAt the moment, the following build tasks are defined:
gulp.task('serve:before', ['watch']);
gulp.task('emulate:before', ['build']);
gulp.task('deploy:before', ['build']);
This is great if you use ionic serve
, ionic emulate
or ionic deploy
respectively. However, I find myself working with the IDEs, so tend to use ionic build
often and as a result, my HTML components are not built.
If I weren’t too familiar with Ionic 2, it could have caused a headache trying to debug the reason why 😃.
May I suggest adding gulp.task('build:before', ['build']);
to the default before
hooks, so ionic build
triggers the HTML components be built?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Creating Tasks | gulp.js
To register a task publicly, export it from your gulpfile. ... The `build` function is exported so it is public and can be...
Read more >Run Gulp task before build in VS Code - Stack Overflow
I can run the styles task manually by doing VS Code package manager -> Tasks: Run Task -> gulp -> gulp: styles ,...
Read more >Integrate gulp tasks in SharePoint Framework toolchain
One common task you can add to the SharePoint Framework toolchain is to integrate your custom gulp tasks in the build pipeline.
Read more >Getting Started with Gulp.js - Semaphore Tutorial
Learn how to set up and use Gulp.js, a task runner for Node.js based on Node streams. We'll introduce main concepts of Gulp...
Read more >How To Build And Develop Websites With Gulp
Install gulp -uglify through npm by running npm install –save-dev gulp-uglify , and then run the task by running gulp minify .
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Good spot - exactly that 😃
@magician03 -> https://github.com/driftyco/ionic-cli/issues/1989
Not a feature yet, unfortunately.