question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a gulp build:before task

See original GitHub issue

At 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kelvindartcommented, Mar 30, 2016

Good spot - exactly that 😃

0reactions
imhoffdcommented, May 19, 2017
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found