S
S
Sergey2016-12-17 14:08:28
Angular
Sergey, 2016-12-17 14:08:28

Architecture in angular2?

Guys, tell me what to read in order to properly assemble the assembly in the gulp + webpack + angular2 bundle. And then according to the tutorials I find only the standard npm start

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuriy Berg, 2016-12-18
@art_haacki

Why do you need to use both Gulp and Webpack, for example, you can get by with one Gulp + BrowserSync.
You write tsconfig.json separately for TS files, specify the compilation location.
In gulpfile.js you write the paths for style sheets and for HTML in the same folder as tsconfig.json. You include
everything in package.json. That is, you write a command for npm start.
The project will build where needed. Depending on your indicated paths. And everything will work with reboot if you use GULP Watch.
And at least try to understand what Webpack, Gulp and NodeJS are.
Here a guy with good vocabulary explains what's what (in Russian)
https://www.youtube.com/user/iliyakan/playlists

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question