Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Ionic 2: gulp + webpack? and relative url?

$
0
0

@royip wrote:

Hi guys

I worked with ionic one until now and I have some question about ionic 2.

I have started with creating a blank project with the --ts flag and i have few questions:

  1. I have notice that there is gulp + wepack, Why both of them are needed? I saw that all gulp is doing is just moving the files from the app folder to www. Cant wepack do that?

  2. I have notice that in the app/pages/home/home.ts the templateUrl to the html file is locate at the build folder.. I excepted the path to be ./home.html, I know this like that since the the location is relative to the app.bundle file but that seems odd, when creating more and more pages it will be harder to guess where the file is going be relative to the app.bundle, how can i use relative paths to the .ts file itself?

  3. When running ionic serve nothing happen.. i must run sudo ionic serve for the app to start :. thats weird no?
    I used sudo npm install -g ionic@beta.. (i cant install that without sudo, permission denied)

Thanks ahead

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>