Parcel: A Zero-Configuration Webpack Alternative

Поделиться
HTML-код
  • Опубликовано: 20 янв 2025

Комментарии • 56

  • @freegracecommunitychurch
    @freegracecommunitychurch 5 лет назад

    so parcel is babel, sass, webpack, and live-server all rolled into one easy to use tool? Yes please! thanks for this video

  • @TroenderTass
    @TroenderTass 4 года назад

    I just love Andrew. Such a good and helpful instructor

  • @patrickc.6183
    @patrickc.6183 5 лет назад

    Thank you for making a very clear and concise video on Parcel! I love the simplicity!

  • @yosoyhim
    @yosoyhim 6 лет назад +4

    You are such a great teacher. I really enjoy your teaching style.

  • @adriatic123
    @adriatic123 6 лет назад +2

    Thanks, finally a real substitute for webpack which was wrongly designed and hard for use from the day one. Obviously guys at Parcel know what programmers need.

  • @awa6426
    @awa6426 6 лет назад +2

    The best teacher ever

  • @Hyp3rSp8c3
    @Hyp3rSp8c3 6 лет назад

    Awesome! Thank you Andrew. I didn't expect you would make this mini-course. Greatly appreciated!

  • @druggero77
    @druggero77 6 лет назад

    Your simple to the point teaching style has helped me understand the material covered. Thanks!

  • @KimHogeling
    @KimHogeling 6 лет назад

    Thank you Andrew for creating this great mini-course and sharing it for free! Amazing job for explaining parcel so thoroughly within just 20 minutes. 💪

  • @robertoelerojunior
    @robertoelerojunior 6 лет назад

    Well done, Andrew. Great job as usual.

  • @akashrajpurohit97
    @akashrajpurohit97 6 лет назад +11

    Appreciate your courses on udemy Andrew...Your teaching methods are pretty awesome and i have enjoyed learning from you in almost all of your courses..Would be kind of cool if you put up some course/RUclips video regarding devOps stuff.Deploying code on linux server and maintaining stuff as a devOp..Thank you for your teachings✌

  • @youdjparents
    @youdjparents 5 лет назад

    you are the best explainer!!!

  • @mearajbhagad666
    @mearajbhagad666 6 лет назад

    Thanks a lot for this great introductory video of parcel :)

  • @nisarhassan7093
    @nisarhassan7093 6 лет назад

    Thank You, Andrew your teaching style is top notch. Would you please do videos regularly at least once a month i will be glad to you?

  • @noahgiesel9030
    @noahgiesel9030 5 лет назад

    Very well explained. Thanks for the video.

  • @philip9677
    @philip9677 4 года назад

    was having issued when the parcel builds the file, in build or prod the index file path of the scripts doesnt work i have to relink them without the forward slash in the begining,

  • @mdkawsarislamyeasin4040
    @mdkawsarislamyeasin4040 2 года назад

    Thanks i Learn many things from you 😊

  • @atulcodex7730
    @atulcodex7730 5 лет назад

    Andrew what I already want to know about webpack before understanding Parcel?

  • @Viralplace
    @Viralplace 4 года назад

    I used that for a little project, but Why If I select multiple entry point in .php files it doesn't compile scss en js? in /dist directory I have just the php files... I want to use php files!

  • @luxgroove480
    @luxgroove480 3 года назад

    i get an error when running npm run dev.....src/js/index.js: Invalid Version: undefined

  • @CodeCraftersStudio
    @CodeCraftersStudio 5 лет назад

    This would be great tutorial and Thankyou for making this video. I have small question here.
    How can I use parcel bundles in wordpress project?

    • @CodeCraftersStudio
      @CodeCraftersStudio 5 лет назад

      Thanks a lot for the reply I will work on your suggestion,
      Thanks a lot once again.

  • @sergi3629
    @sergi3629 6 лет назад

    That was great bu how do we bundle together full script files. For example I want to bundle "navbar.js" and "script.js" into "iindex.js"? I think that should have been explained.

  • @barjosa31blogspot83
    @barjosa31blogspot83 6 лет назад

    Thank You Very Much! Really nice and helpful content!

  • @HarpreetSingh-cz2zh
    @HarpreetSingh-cz2zh 5 лет назад

    getting this error when i try to import images into js file:
    × Cannot read property 'js' of null at Bundler.createBundleTree (D:\Designs by Harp\Freelance-webdesign-development\Client-projects\Projects-2018\November\Cervini-bhatia\Development
    ode_modules\parcel-bundler\src\Bundler.js:650:39)
    at Bundler.createBundleTree (D:\Designs by Harp\Freelance-webdesign-development\Client-projects\Projects-2018\November\Cervini-bhatia\Development
    ode_modules\parcel-bundler\src\Bundler.js:692:12)
    at Bundler.createBundleTree (D:\Designs by Harp\Freelance-webdesign-development\Client-projects\Projects-2018\November\Cervini-bhatia\Development
    ode_modules\parcel-bundler\src\Bundler.js:692:12)
    at Bundler.createBundleTree (D:\Designs by Harp\Freelance-webdesign-development\Client-projects\Projects-2018\November\Cervini-bhatia\Development
    ode_modules\parcel-bundler\src\Bundler.js:692:12)
    at Bundler.bundle (D:\Designs by Harp\Freelance-webdesign-development\Client-projects\Projects-2018\November\Cervini-bhatia\Development
    ode_modules\parcel-bundler\src\Bundler.js:284:14)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    Here is my js:
    import "../styles/index.scss";
    import paperbg from "../images/2ndpaper.jpg";
    here is the scss code:
    .hero{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background: url('../../images/2ndpaper.jpg') center center no-repeat;
    }
    How to fix this?
    Thank you!

  • @HarpreetSingh-cz2zh
    @HarpreetSingh-cz2zh 6 лет назад

    great video. I keep getting doubles of every file? How to fix this?

    • @HarpreetSingh-cz2zh
      @HarpreetSingh-cz2zh 6 лет назад

      @@andrewjosephmead1 every file - css, scss and javascript getting double of each in dist and prod folder. Also how to do code splitting?

  • @Pizzaguy2
    @Pizzaguy2 5 лет назад

    how can I setup parcel and socket.io anyone plz?

  • @clockwerkz
    @clockwerkz 6 лет назад

    hey Andrew! Thanks for putting out this quick primer on Parcel! Quick question: I'm a huge fan on how you handle your css styling in your videos. I'm currently going through your React course and I'm working through the Redux section for the Expensify App. Going through the Indecision section, I loved the naming conventions you gave your CSS. Do you have a course where you go more in-depth in your styling? Or could you recommend specific resources? I've found stuff on BEM but it doesn't seem to follow the styling you employ. Thanks!

    • @clockwerkz
      @clockwerkz 6 лет назад

      Oh no, sorry - I mean the actual naming convention of your css.. i think you mention BEM, but the resources I've found on it seem a little different than your naming conventions for your css classes.

    • @clockwerkz
      @clockwerkz 6 лет назад

      Awesome, thanks for the link!

  • @Cognitoman
    @Cognitoman 6 лет назад

    does it have tree shacking ?

    • @Cognitoman
      @Cognitoman 6 лет назад

      Andrew Mead I might look into it more thanks

  • @เทพนิรนาม-ณ5ฃ

    There have a few issued when we run build script it have an error with not found script and css file we should change command to this one
    "build": "parcel build src/index.html --public-url ./ --out-dir prod"
    reference
    github.com/parcel-bundler/parcel/issues/470

  • @HarpreetSingh-cz2zh
    @HarpreetSingh-cz2zh 6 лет назад

    When we install @babel/plugin-proposal-class-properties, do we --save or --save-dev?

    • @chinoto1
      @chinoto1 4 года назад

      Since it is only used in building, not at runtime, it would be a development dependency. If you install all dependencies, it doesn't really matter. I'm not sure when you wouldn't install all dependencies.

  • @shahabemami4275
    @shahabemami4275 5 лет назад

    please create a course on styled-components and web base component concepts

  • @VeriousSmithIII
    @VeriousSmithIII 6 лет назад

    I don't know why but when you add the "./" to the file path this really confuses me. Cant you just use "/" for the file path? Why add the "."?

    • @VeriousSmithIII
      @VeriousSmithIII 6 лет назад

      @@andrewjosephmead1 Yes that's the line I'm referring to.

    • @VeriousSmithIII
      @VeriousSmithIII 6 лет назад

      @@andrewjosephmead1 Thank you for clarifying that this syntax is related to "importing" I was confused. I am still moving through your Javascript bootcamp so I still feeling very incompetent. Thanks for your speedy response.

  • @coolbud8541
    @coolbud8541 3 года назад

    there is no need to install sass, parcel looks for the imports and it automatically installs them ...

  • @getrekt1386
    @getrekt1386 6 лет назад

    nicely done

  • @HarpreetSingh-cz2zh
    @HarpreetSingh-cz2zh 6 лет назад

    Just bought your javascript course on udemy. :)
    Do we have to make install parcel in -g for everytime we create a new project and use parcel?

    • @waterp2202
      @waterp2202 4 года назад

      no, once that you installed it globally you can just use the parcel command

  • @HarpreetSingh-cz2zh
    @HarpreetSingh-cz2zh 5 лет назад

    Having an issue:
    How to use multiple pages with parcel?
    Every time I go to ex: about.html its fine but when I go back to index.html then there's an issue. Here is the error:
    about.js:1 Uncaught SyntaxError: Unexpected token <
    script.7c337ef3.js:39 Uncaught (in promise) Error: Cannot find module '../node_modules/parcel-bundler/src/builtins/css-loader.js'
    at newRequire (script.7c337ef3.js:39)
    at newRequire (script.7c337ef3.js:23)
    at localRequire (script.7c337ef3.js:55)
    at Object.parcelRequire.styles/index.scss../..\images\2ndpaper.jpg (script.7c337ef3.js:110)
    at newRequire (script.7c337ef3.js:49)
    at localRequire (script.7c337ef3.js:55)
    at Object.parcelRequire.script/index.js.../styles/index.scss (index.js:1)
    at newRequire (script.7c337ef3.js:49)
    at localRequire (script.7c337ef3.js:55)
    at index.js:16
    newRequire @ script.7c337ef3.js:39
    newRequire @ script.7c337ef3.js:23
    localRequire @ script.7c337ef3.js:55
    parcelRequire.styles/index.scss../..\images\2ndpaper.jpg @ script.7c337ef3.js:110
    newRequire @ script.7c337ef3.js:49
    localRequire @ script.7c337ef3.js:55
    parcelRequire.script/index.js.../styles/index.scss @ index.js:1
    newRequire @ script.7c337ef3.js:49
    localRequire @ script.7c337ef3.js:55
    (anonymous) @ index.js:16
    Promise.then (async)
    parcelRequire.0 @ index.js:16
    newRequire @ script.7c337ef3.js:49
    (anonymous) @ script.7c337ef3.js:81
    (anonymous) @ script.7c337ef3.js:107
    Here is the scripts from package.json:
    "scripts": {
    "dev": "parcel src/*.html",
    "build": "parcel build src/*.html --out-dir prod"
    }
    Here is the index.js:
    import "../styles/index.scss";
    import "../images/2ndpaper.jpg";
    import "../images/landing-arch.png";
    import "../about.html";
    What is wrong in the code?
    Thank you.

  • @yongzeyao1337
    @yongzeyao1337 6 лет назад

    Jesus! Why didn't I know this earlier? Webpack is such a pain to configure

  • @haroldkhaledtrendings2344
    @haroldkhaledtrendings2344 6 лет назад

    great video

  • @gersoncjunior
    @gersoncjunior 6 лет назад

    Amazing Thank you!

  • @shubhamnikam7553
    @shubhamnikam7553 7 месяцев назад

    Thakyou bro❤

  • @AndreiFecioru
    @AndreiFecioru 6 лет назад +1

    Maybe a better name for the exported method would be getFirstName. Then you would invoke it like: getFirstName("Andrew Mead") and the return value would be indeed "Andrew".

  • @BG-xu8be
    @BG-xu8be 5 лет назад

    Actually you don't need to install sass, just import the scss file and parcel does any needed install for you...

  • @danieln7777
    @danieln7777 6 лет назад +1

    Cool

  • @bayesianmonk
    @bayesianmonk 6 лет назад

    Funny this promise explanation. Just shows that the concept is being abused far too often.

  • @vcizek6047
    @vcizek6047 5 лет назад

    Hello Andrew. So you just barely covered the documentation of parceljs. Thank you. Could you explain why did I have to sit for a twenty minutes to wait, if you throw anything of an actual value? If you want to know why I'm so pissed off, I'm interested in one thing about Parcel.js. How do you specify an entry point, if you do not have index.html? Like a laravel application for example. I know you can specify a js file, however that will hardly allow you to benefit of the dev server. Any ideas? Why are these tutorials so rubbish? If you were such a great tutor, as so many suggest here, you would not only provided a decent tutorial on this, but would added some pinpoints to actual live use cases. As they say, if you can't do it - just teach it.