Browsersync + Sass + Gulp in 15 minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 พ.ย. 2024

ความคิดเห็น • 134

  • @TheCoderCoder
    @TheCoderCoder  3 ปีที่แล้ว +20

    🚨 NOTE: If you're getting an error "gulp-sass 5 does not have a default compiler; please set one yourself" you will need to update the line:
    const sass =require('gulp-sass'); to instead read: const sass = require('gulp-sass')(require('sass'));

    • @drmikeyg
      @drmikeyg 3 ปีที่แล้ว +1

      Worked for me! Thanks Ms. Coder Coder

    • @chuckcoughlin3112
      @chuckcoughlin3112 2 ปีที่แล้ว +2

      fyi I had to go back and install(npm install sass) as in video the install was gulp-sass. After making the above change and your change to the gulpfile.js file all is good. Great work and you are view precise with your explanations. I think you do a better job than Kevin when it come to SASS. (nice work) I hope you keep doing more SASS video as your video are the best I seen on TH-cam.

    • @ob5804
      @ob5804 ปีที่แล้ว

      Hello. Please help me, I have 3 folders in the scss folder, and they contain files + in the root of the scss folder, the style.scss file. The problem is that when I make changes in some files and click save or go to others, which also does automatic saving, then this saving does not happen (and there is no styles finished in the terminal, but when I go to the style.scss file and when I click save, the changes are applied. I don't know how to make the changes I made in *.scss apply when I click Save in this (any) specific file
      function styles() {
      return src('app/scss/style.scss')
      .pipe(
      autoprefixer({
      overrideBrowserslist: ['last 10 version'],
      grid: true,
      }),
      )
      .pipe(concat('style.min.css'))
      .pipe(scss({ outputStyle: 'compressed' }))
      .pipe(dest('app/css'))
      .pipe(browserSync.stream())
      }
      function watching() {
      browserSync.init({
      server: {
      baseDir: 'app/'
      }
      });
      // watch(['app/scss/style.scss'], styles);
      watch(['app/scss/**/*.scss'], styles);
      watch(['app/images/src'], images);
      watch(['app/js/main.js'], scripts);
      // watch(['app/components/*', 'app/pages/*'], pages);
      watch(['app/*.html']).on('change', browserSync.reload);
      }

    • @TheCoderCoder
      @TheCoderCoder  ปีที่แล้ว

      @@ob5804 Can you give an example of a specific file and the full path to that file, where saving the file doesn't re-compile your Sass files?

    • @ob5804
      @ob5804 ปีที่แล้ว

      @@TheCoderCoder
      app/scss/layouts/header.scss
      app/scss/base/base.scss
      app/scss/abstracts/vars.scss

  • @pranavgoel29
    @pranavgoel29 4 ปีที่แล้ว +7

    Welcome back once again !
    Loving the new Intro 😍
    Well explained too 🙌🏻

  • @learnMoreToCode
    @learnMoreToCode ปีที่แล้ว

    I ran on some problem while installing gulp and this helped me so much. Thank you for this video!

  • @daveyeghiazaryan4722
    @daveyeghiazaryan4722 4 ปีที่แล้ว +1

    You are one of the best web dev youtubers in the world!!! love ya.

  • @kunleade8745
    @kunleade8745 4 ปีที่แล้ว +5

    She's back😃
    Cheers🥂

  • @chiptaylor1124
    @chiptaylor1124 2 ปีที่แล้ว

    Such awesome content. Just discovered you about a week ago and I have been binge-watching! LOL Thank you!

  • @alvegax
    @alvegax 4 ปีที่แล้ว +1

    Welcome back, love your content! Stay healthy and keep doing awesome work! Cheers 🍻

  • @mariuszgolik7040
    @mariuszgolik7040 4 ปีที่แล้ว +3

    I am impressed with your accuracy and order in your code.I have learned a lot from You! I am glad to discover your channel Jessica !I can't wait for your live coding ! Could you do something more difficult ?? More Vanilla JS?More complicated Website ? Best regards from Europe...;) You are doing a great job Jessica!!!

  • @gobideveloper111
    @gobideveloper111 4 ปีที่แล้ว

    After 3 months later on u again back. Nice to see again I'm excited about yours cool projects. Please carry on those cool projects so excited to watch out.

  • @anshaxtv
    @anshaxtv 4 ปีที่แล้ว +15

    we Miss u♥️

    • @sabirnawaz1304
      @sabirnawaz1304 3 ปีที่แล้ว

      what happened to her is she OK?

  • @bobtheatheist63
    @bobtheatheist63 2 ปีที่แล้ว

    This was super helpful in getting my projects updated to the new version of gulp. Thank you!

  • @emrahinklavyesi
    @emrahinklavyesi 3 ปีที่แล้ว

    I tried that it didn't work but for some reason it worked with your method, thanks :)

  • @MrTedane
    @MrTedane 4 ปีที่แล้ว +1

    Glad you're back!

  • @tomasmatusek6292
    @tomasmatusek6292 2 ปีที่แล้ว +1

    Thanks alot, I now exploring scss and I get tutorial how crate library from The Net Ninja, and I had any problem with the gulp, and more understanding this program. So thanks alot for you time. Devinitely I will use that and learning from you to :)
    Tcheers Tom

  • @techtipsuk
    @techtipsuk 3 ปีที่แล้ว +1

    Just want to say thanks and your videos really are very good. Clear, concise and super helpful.

  • @prasanth53
    @prasanth53 4 ปีที่แล้ว +2

    Finally come back....super :)

  • @VinceM1000
    @VinceM1000 4 ปีที่แล้ว

    Love your new opening! ❤️
    Thank you for this video, been hoping for this for awhile. Missed your videos.

  • @toyinjr
    @toyinjr 4 ปีที่แล้ว +1

    yoo, missed your videos, welcome back

  • @aaronjamesfrancisco7605
    @aaronjamesfrancisco7605 4 ปีที่แล้ว +1

    She's back

  • @pasamsuresh7566
    @pasamsuresh7566 4 ปีที่แล้ว

    Loved ur tuts so much.
    Love from india🇮🇳

  • @SoftwareJournal
    @SoftwareJournal 4 ปีที่แล้ว

    Thank you for putting me on Gulp and BrowserSync! Definitely going to test it out on my future projects.

  • @engineerx4487
    @engineerx4487 4 ปีที่แล้ว +1

    i missed you so much :(
    glad to see new awesome video

  • @squ34ky
    @squ34ky 3 ปีที่แล้ว

    Thanks! I was one of those who requested this. That account that got suspended, though. This is my backup.

  • @IslamicHarmonyChannel
    @IslamicHarmonyChannel 3 ปีที่แล้ว

    I am extremely grateful to you Jessica for this Gulp Tutorial. Thank you very much !!!
    God Bless you :)

  • @MrSaint-ch6xn
    @MrSaint-ch6xn 4 ปีที่แล้ว +2

    I learnt lot from u Mam heartily❤️❤️ thanks to you

  • @hi_im_willow
    @hi_im_willow 2 ปีที่แล้ว

    And you saved my life again

  • @zihadhosan23
    @zihadhosan23 3 ปีที่แล้ว

    You saved my day my dear. Only thanks not enough for appreciate you. Happy Coding!!! :)

  • @nireekshashetty4164
    @nireekshashetty4164 4 ปีที่แล้ว

    Glad you are back😍

  • @VMStrannik
    @VMStrannik 2 ปีที่แล้ว

    You are my saviour!

  • @thatgitahi
    @thatgitahi 2 ปีที่แล้ว

    Wow, thanks a lot. This has really helped me. I had the same problem and i tried making a scaffold cli tool with python😅😅. It sucked mehn. I didn't know using Javascript to make such a tool was this easy

  • @shadmanrashid9991
    @shadmanrashid9991 4 ปีที่แล้ว +1

    sis your video editing skill is great..
    it would be great if you post a series about video editing

    • @Saaad2
      @Saaad2 2 ปีที่แล้ว

      Not sure if she is better programmer or video editor

  • @stratocaster_o
    @stratocaster_o 3 ปีที่แล้ว +3

    What's the difference between this and using an extension like Live Server? I mean, besides the minifying of the CSS and JS files.

  • @wcandillon
    @wcandillon 4 ปีที่แล้ว +1

    I came here for the new intro 🍿

  • @muhmmadusmananwar2037
    @muhmmadusmananwar2037 ปีที่แล้ว

    Thank you for your content 😍

  • @easyvideott7505
    @easyvideott7505 3 ปีที่แล้ว +1

    Why does npm install gulp-cli -g with LTS node v14.15.4 throw a warning message about deprecated resolve-url and urix?

  • @adityasutar7029
    @adityasutar7029 ปีที่แล้ว

    Amazing! still useful in 2023. can you make video on Gulp, Pug, BrowserSync, and Sass

  • @akshayshirsat6003
    @akshayshirsat6003 4 ปีที่แล้ว

    After a long time and as always very nice and informative lesson..!😊😊

  • @mustbeaweful2504
    @mustbeaweful2504 4 ปีที่แล้ว +4

    I’m pretty noob when it comes to coding, so I *might* have focused a little too much on how comfy your hoodie looks.

  • @anwardeen1446
    @anwardeen1446 2 ปีที่แล้ว

    You are the best👌

  • @ДмитроКузьменко-ъ2е
    @ДмитроКузьменко-ъ2е 2 ปีที่แล้ว

    Hello from Ukraine.
    Thank you for this guide.

  • @tomf5819
    @tomf5819 3 ปีที่แล้ว

    Thanks a lot for this Tutorial.
    It's a pleasure to listen and follow your explanation.
    Thumps up 👍 and many greetings

  • @astroboy3720
    @astroboy3720 2 ปีที่แล้ว

    You're amazing, helped a lot, thank youuuuu 🙏🙏💗💗⭐⭐

  • @naimulislamrayan2447
    @naimulislamrayan2447 4 ปีที่แล้ว +3

    can u make a e-commerce website front and back end

  • @dansanchez1353
    @dansanchez1353 2 ปีที่แล้ว

    Hey I tried this one and it works perfeclty until I did try to use the type="module" in my HTML and used the import in my js file but the gulp was converting it to require() function which throwing an error like "app.js? [sm]:1 Uncaught ReferenceError: require is not defined" I looked arround at google but it requires me using webpack instead which has a lot of configuration. how to be able to fix this part?

  • @BobDoe_69
    @BobDoe_69 2 ปีที่แล้ว

    this vid has a lofi vibe to it, music volume just right. I get annoyed when the music is way too loud and cant hear the talking. Nicely balanced.

  • @UsMan-uv9em
    @UsMan-uv9em 2 ปีที่แล้ว

    Hi, I'm using your Gulpfile but it doesn't work for es6 modules and throws the error "ReferenceError: require is not defined". I think it is related to gulp-babel or something. Is there any way to use es6 modules with Gulp?

  • @kennydev27
    @kennydev27 3 ปีที่แล้ว

    Very Clean i like that about u keep it up

  • @muhammadbahdree6648
    @muhammadbahdree6648 4 ปีที่แล้ว

    Welcome back 🤗

  • @gr8kafka
    @gr8kafka 2 ปีที่แล้ว

    I tried reading a lot of documentation and I still couldn't make it work.
    After this 15 min video I did it... first try. Thank you 😊

  • @elmochtarmedia8491
    @elmochtarmedia8491 ปีที่แล้ว

    Hallo, how to multipage indexed in index.html because i build gulp successed but all page in index.html not render. Please help me

  • @DevMadeEasy
    @DevMadeEasy 4 ปีที่แล้ว

    Great content, thanks so much for sharing it with us!

  • @sawehdohwah1634
    @sawehdohwah1634 3 ปีที่แล้ว

    We love you

  • @dozadetrezire7455
    @dozadetrezire7455 2 ปีที่แล้ว

    when we install all those packages and plugins, isnt it necessary to add - - save-dev before their neame just like you did in your prevoious Gulp course in 2019?

    • @TheCoderCoder
      @TheCoderCoder  2 ปีที่แล้ว

      you actually don't have to use save-dev anymore, because npm will now by default save packages to your dependencies

  • @namuk7987
    @namuk7987 2 ปีที่แล้ว

    Very good Tutorial. But it seems to me that gulp/browsersync will not work with node 16.15.1 and npm 8.13.1. SASS should be adapted but the watcher will not work in my environmentin Win10/wsl2.

  • @phanta5m
    @phanta5m 3 ปีที่แล้ว

    thank you so much, it help me alot

  • @meforwork3460
    @meforwork3460 2 ปีที่แล้ว

    I dont know where i did wrong but my browsersync doesnt automatically reload. whyy?

  • @joe82
    @joe82 2 ปีที่แล้ว

    Hi there! Thanks for your video.
    I started to learn HTML and CSS a month ago and try to move on to javascript but before I start I found out there is something call SCSS and I've stuck for 1week already...LOL
    there are so many terms pop up like npm, gulp, parcel... thanks to your video I started having some concept now....roughly...
    I have some question...hope you see my comment and help me out
    - Q: I tried to follow your video to install gulp but it said urix and resolve-url deprecated and no node_modules folder appear, what should I do?
    - Q: What's the difference between using npm installing gulp to use sass and just using VS code live sass comilper of any other parcel? Is it affect how I write code?
    Once again, thanks!
    *P.S. sorry for my poor english

  • @12afaelpereira
    @12afaelpereira 3 ปีที่แล้ว

    Thank you!

  • @vishnuajit5492
    @vishnuajit5492 2 ปีที่แล้ว

    Thank you

  • @TomCodeur
    @TomCodeur 3 ปีที่แล้ว

    Hello, thanks for this video but what's the difference between Gulp and the sass watch command + the Go Live extension of vs code ? Sorry for my very poor English ^^

  • @andygyakobo7122
    @andygyakobo7122 3 ปีที่แล้ว

    Thank you!!!

  • @paschalokafor9043
    @paschalokafor9043 3 ปีที่แล้ว

    Will you still need to use browser-sync if you already use vscode`s liveserver?

  • @bradwhite5411
    @bradwhite5411 3 ปีที่แล้ว

    Hey first of all thanks for this tutorial its awesome, works perfectly, I have a question though, I wonder why scss @use not working I tried it several times but it won't work at all. what do you think about this?

  • @Abdullah-sy9hx
    @Abdullah-sy9hx 4 ปีที่แล้ว +1

    Hey! can you make a video about the CSS crash course?

  • @codeAlongwith
    @codeAlongwith 2 ปีที่แล้ว +1

    How do I make this work with php files?

  • @andrade.e
    @andrade.e 3 ปีที่แล้ว

    Hello! When I try to install the npm packages they find 7 critical errors... how can I fix them? Pleeease! Love your videos, you really help a lot, thank you so much!

  • @Daddasoft
    @Daddasoft 4 ปีที่แล้ว

    Great content thank tou

  • @Karen-fy7mq
    @Karen-fy7mq 2 ปีที่แล้ว

    Thanks!!!!

  • @Владислав-я6э3з
    @Владислав-я6э3з 3 ปีที่แล้ว

    Thanks:)

  • @siddharth.ingale
    @siddharth.ingale 4 ปีที่แล้ว

    Umm! Long time no see! 👀

  • @daniellasauskas2570
    @daniellasauskas2570 3 ปีที่แล้ว

    Whats the difference between live server extension of Vs Code and browser sync??

  • @cazterk
    @cazterk 2 ปีที่แล้ว

    setting up font-awesome in gulp?

  • @Dachshundwarlord
    @Dachshundwarlord 3 ปีที่แล้ว

    Sorry if this is a dumb question, but I currently use Live Server through Visual Studio Code. Why would I go through all this effort to utilize browsersync when I can just use the Live Server extension? Thanks :)

  • @korragnarok1536
    @korragnarok1536 2 ปีที่แล้ว

    anyone having issues when installing the sass packages in the project file: 11 high severity vulnerabilities 7high 4 critical...should this worry me?

  • @gobideveloper111
    @gobideveloper111 4 ปีที่แล้ว

    Which theme you will use it. Really i loved it so much this theme. Please anyone gave the name of the theme.

  • @takitachibana7717
    @takitachibana7717 3 ปีที่แล้ว

    13:21 i typed glup but it didn't work. i downloaded your gulp-browsersync-main file and run exactly same as yours but i didn't work tho.

  • @ghulamilyas6020
    @ghulamilyas6020 3 ปีที่แล้ว

    can we do the same thing with "go live " extension in vs vs code?

  • @azad9655
    @azad9655 3 ปีที่แล้ว

    Isn't there a live server plugin in vs code?

  • @stivenperez2090
    @stivenperez2090 3 ปีที่แล้ว

    thank u

  • @hades1384
    @hades1384 2 ปีที่แล้ว

    Task never defined: default
    [11:09:50] To list available tasks, try running: gulp --tasks

  • @amigaworkbench720
    @amigaworkbench720 3 ปีที่แล้ว

    thx!

  • @zg0d007
    @zg0d007 3 ปีที่แล้ว

    Can you able to share your vs code settings.json???

  • @sahej97
    @sahej97 3 ปีที่แล้ว

    Is browsersync an alternative to live share?

  • @kribo9604
    @kribo9604 2 ปีที่แล้ว

    What is the deal with sourcemaps, why use them in sass?

  • @JJ-wt4xv
    @JJ-wt4xv 4 ปีที่แล้ว

    A new video!!!!

  • @joyboy5332
    @joyboy5332 3 ปีที่แล้ว

    Can someone explain to me what's the difference between Browsersync and Live server extension?
    Seem to accomplish similar thing 😅

  • @thomascubillosa8538
    @thomascubillosa8538 4 ปีที่แล้ว

    Nice video ,quality is awesome!,could you share the vsCode theme?

  • @joobats
    @joobats 2 ปีที่แล้ว

    Does anyone know how to get the browser to inject the css on scss change, rather than reloading the page?

    • @joobats
      @joobats 2 ปีที่แล้ว

      In the gulpfile I added .pipe(browsersync.stream()); to the bottom of the scssTask function and removed browsersyncReload from the scss watchTask.

  • @vsvaix
    @vsvaix 3 ปีที่แล้ว

    live server extention is same??

  • @easyvideott7505
    @easyvideott7505 3 ปีที่แล้ว

    Why doesn't this tutorial work with node 14.15.4 LTS version

    • @easyvideott7505
      @easyvideott7505 3 ปีที่แล้ว

      Because of different node versions! Figured this one out. @CoderCoder which gulp-cli version did you use for this tutorial?

  • @LabhamJain
    @LabhamJain 4 ปีที่แล้ว

    Great Video! Isn't This Live Server's Source Code? 😂😂😂

    • @TheCoderCoder
      @TheCoderCoder  4 ปีที่แล้ว +1

      Hahaha maybe? It does pretty much the same thing 😂

    • @LabhamJain
      @LabhamJain 4 ปีที่แล้ว

      @@TheCoderCoder 😂😂😂

  • @troop5100
    @troop5100 3 ปีที่แล้ว

    For some reason browser sync only works for like 1 minute, then it just stuck on reloading but never does. great video though!

  • @GonzaloGuevaraFreire
    @GonzaloGuevaraFreire 3 ปีที่แล้ว

    Estas herramientas son consideradas viejas confiables

  • @lemuelcrash
    @lemuelcrash 3 ปีที่แล้ว

    i have a question i how do you install emmet

    • @squ34ky
      @squ34ky 3 ปีที่แล้ว

      Emmet comes built-in in current versions of VSCode.

  • @kennethpineda6143
    @kennethpineda6143 3 ปีที่แล้ว

    Please make also a tutorial how to import bootstrap 5 in gulp. Thank you!

  • @T12321
    @T12321 2 ปีที่แล้ว

    👍👍👍👍👍

  • @chei86
    @chei86 3 ปีที่แล้ว

    Could you maybe do a tutorial on next.js? Especially next.js + sass :-)

  • @tomasmatusek6292
    @tomasmatusek6292 2 ปีที่แล้ว

    I have problem running that, but its ok :)'
    Pls can you for future explain Us every detail why and what u doing? like .pipe( )? ets? Its not only watch tutorial and copirate it and put, and that it. I would understand the point , what you doing. Thanks and sorry for my english.

  • @Streamlinedotcom
    @Streamlinedotcom 3 ปีที่แล้ว

    Laravel-mix can be handy as well

  • @100XPercentX
    @100XPercentX 4 ปีที่แล้ว

    Anyone recommend web devs that do courses like coder coder? :) preferably less familiar, though.