Webpack & TypeScript Setup #6 - Source Maps

preview_player
Показать описание
🐱‍👤🐱‍👤 JOIN THE GANG -
----------------------------------------
🐱‍💻 🐱‍💻 My Udemy Courses:

🐱‍💻 🐱‍💻 Course Files:

🐱‍💻 🐱‍💻 Other Related Free Courses:

🐱‍💻 🐱‍💻 TypeScript Docs:

🐱‍💻 🐱‍💻 The Net Ninja Community Boards:
Рекомендации по теме
Комментарии
Автор

I think this is my 3rd time watching this series, lol. GG

KamelJabber
Автор

Strangely what I have found that on Chrome you don't need source maps and it works while in Firefox it is not working even after setup for source maps.

akash-kumar
Автор

So far these videos are great and work perfectly well, but I'm very confused as to what the point was of using Live Server. Everything with the eval and debugging seems to work just as well with webpack-dev-server, but does not require re-building. So... why?

civilviking
Автор

How do you use webpack to convert the js to min.js? I suppose you need to install a module?

Lukex
Автор

Only file in webpack-internal:// is a file called "0", with contents of forms.ts and index.ts just concatenated to the same single file.

Anyone knows why this is? :)

Cloned lesson-6, installed dependancies, installed live server, added the error producing code, ran `build`...

Console just points to line 23 in file "0":

"Uncaught TypeError: person.speak is not a function 0:23
at eval (0:23)
at Module.<anonymous> (bundle.js:1)
..."

Geckaround
Автор

So this is all a little confusing. For some reason Webpack's dev server runs and works as expected but the bundle.js file never updates in the public folder even after changes and even if I delete it, it doesn't create a new one.

darkmojojojo
Автор

Jump to 2:50 if you would like to see his actual webpack and tsconfigs

jibreelkeddo
Автор

Hi net ninja, you are using "npm run build" which uses webpack to build the ts files into "bundle.js", and not "npm run serve" which starts a development server right? How come the url that you are browsing 127.0.0.1:5500 works?

XxHenrykunxX