Does Ionic 2 use gulp or webpack to bundle assets?
I can’t understand what’s happening in a project Iḿ working in. It was working ok with these settings:
Cordova CLI: 6.0.0
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Version: 2.0.0-beta.3
Ionic CLI Version: 2.0.0-beta.19
Ionic App Lib Version: 2.0.0-beta.9
when I do ionic serve, the assets are built properly by webpack.
Then I started to work on it in another environment (I commited the project to a git repository, then in thje other machine installed the Ionic 2 and dependencies). When I run ionic serve, the assets are not “compiled” Example: app.bundle.js is not created).
Cordova CLI is 6.1.0, Ionic CLI Version is 2.0.0-beta.23 and Ionic App Lib Version is 2.0.0-beta.13.
Oh, thanks!
I’ll update the first environment to the latest version. Is there any doc about how to migrate from webpack to gulp?
Or the best way is to create a new project (based on gulp) and follow it steps?
You’re probably better off creating a new project and moving code over. While it’s a bit of a pain (we know, we’re sorry!) it will makes sure that everything is setup correctly.
As all of this stuff gets finalized, this shouldn’t be an issue anymore
Hey, @mhartington, I have a small thing to say about Gulp:
When I used Gulp in Ionic1 it worked really well. I just had to add gulp-plumber to every single gulpfile.js.
gulp-plumber prevents gulp from crashing and stop running when an error occurs. Like when you forget to type a color in a .scss file, the gulp process doesn’t stop.
What do you think about adding it to the default gulpfile.js?