+ 3

JavaScript Webpack issues

So in NodeJS, I’ve installed Webpack, but I’m also using Babel to transpile my new code into older versions. I’m having trouble getting webpack to execute my javascript import statements, but babel works great. Does anyone have some tips for like how to make webpack config file or how to get webpack to run before babel? Any help or tips would be greatly appreciated, I’m pretty new to NodeJS and the express NodeJS framework.

1st Jul 2018, 3:29 AM
nk361
nk361 - avatar
11 odpowiedzi
+ 3
We need to build setup for webpack to run well, it's overwhelming for a lots of beginners. You should try to use parcel.js, it's much easy to setup, it would likely to replace webpack later. If you interested on Parcel, check out this video, an easy to kick start tutorial. https://youtu.be/b-6BeS-22yw
1st Jul 2018, 4:18 AM
Calviղ
Calviղ - avatar
+ 4
try parcel
1st Jul 2018, 8:33 PM
\__(° = °)__/
+ 2
Yes, you would.. just check out the video, i think you would like to use Parcel instead of webpack.
1st Jul 2018, 4:24 AM
Calviղ
Calviղ - avatar
+ 2
One thing to keep in mind when using Parcel: run command: parcel index.html Not parcel, which demo on the tutorial.
1st Jul 2018, 4:26 AM
Calviղ
Calviղ - avatar
+ 2
The youtuber also has great React tutorials.
1st Jul 2018, 5:00 AM
Calviղ
Calviղ - avatar
+ 1
Calviղ that tutorial is surprisingly good! I’m glad it covers react too, I may hop into that sometime too. Thank you, now I just need to work on getting it all to work in Webstorm
1st Jul 2018, 4:36 AM
nk361
nk361 - avatar
+ 1
Calviղ I will definitely check em out, I’m currently starting to learn tensorflowjs btw, that’s why I’m jumping into all this haha Glad to see someone experienced on here
1st Jul 2018, 5:08 AM
nk361
nk361 - avatar
0
thank you Calviղ I can look into parcel, the libraries I want to use mentioned it, but my friend recommended webpack lol Would I still creat a bundle.js file and such for all the files I need?
1st Jul 2018, 4:22 AM
nk361
nk361 - avatar
0
thank you for the tutorial too!
1st Jul 2018, 4:23 AM
nk361
nk361 - avatar
0
hmhm
30th Aug 2018, 11:53 PM
Mazin Ahmed Ibrahim Ahmed
Mazin Ahmed Ibrahim Ahmed - avatar
0
thanx very much
30th Aug 2018, 11:53 PM
Mazin Ahmed Ibrahim Ahmed
Mazin Ahmed Ibrahim Ahmed - avatar