Browsersync + Sass + Gulp in 15 minutes

Поделиться
HTML-код
  • Опубликовано: 7 ноя 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 RUclips.

    • @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🥂

  • @anshaxtv
    @anshaxtv 4 года назад +15

    we Miss u♥️

  • @alvegax
    @alvegax 4 года назад +1

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

  • @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

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

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

  • @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.

  • @MrTedane
    @MrTedane 4 года назад +1

    Glad you're back!

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

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

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

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

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

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

  • @aaronjamesfrancisco7605
    @aaronjamesfrancisco7605 4 года назад +1

    She's back

  • @techtipsuk
    @techtipsuk 3 года назад +1

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

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

    Loved ur tuts so much.
    Love from india🇮🇳

  • @prasanth53
    @prasanth53 4 года назад +2

    Finally come back....super :)

  • @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

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

    Glad you are back😍

  • @toyinjr
    @toyinjr 4 года назад +1

    yoo, missed your videos, welcome back

  • @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.

  • @MrSaint-ch6xn
    @MrSaint-ch6xn 4 года назад +2

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

  • @engineerx4487
    @engineerx4487 4 года назад +1

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

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

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

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

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

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

    And you saved my life again

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

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

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

    You are my saviour!

  • @wcandillon
    @wcandillon 4 года назад +1

    I came here for the new intro 🍿

  • @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

  • @adityasutar7029
    @adityasutar7029 Год назад

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

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

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

  • @ДмитроКузьменко-ъ2е

    Hello from Ukraine.
    Thank you for this guide.

  • @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.

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

    Welcome back 🤗

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

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

  • @muhmmadusmananwar2037
    @muhmmadusmananwar2037 Год назад

    Thank you for your content 😍

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

    You are the best👌

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

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

  • @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?

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

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

  • @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

  • @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 😊

  • @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.

  • @naimulislamrayan2447
    @naimulislamrayan2447 4 года назад +3

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

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

    We love you

  • @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?

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

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

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

    Very Clean i like that about u keep it up

  • @codeAlongwith
    @codeAlongwith 2 года назад +1

    How do I make this work with php files?

  • @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?

  • @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

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

    setting up font-awesome in gulp?

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

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

  • @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 ^^

  • @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?

  • @12afaelpereira
    @12afaelpereira 3 года назад

    Thank you!

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

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

  • @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 :)

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

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

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

    Thank you

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

    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

  • @Abdullah-sy9hx
    @Abdullah-sy9hx 4 года назад +1

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

  • @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!

  • @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.

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

    Great content thank tou

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

    thank you so much, it help me alot

  • @Karen-fy7mq
    @Karen-fy7mq 2 года назад

    Thanks!!!!

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

    Is browsersync an alternative to live share?

  • @Владислав-я6э3з
    @Владислав-я6э3з 3 года назад

    Thanks:)

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

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

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

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

  • @siddharth.ingale
    @siddharth.ingale 4 года назад

    Umm! Long time no see! 👀

  • @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.

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

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

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

    thank u

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

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

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

    live server extention is same??

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

    thx!

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

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

  • @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.

  • @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?

  • @JJ-wt4xv
    @JJ-wt4xv 4 года назад

    A new video!!!!

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

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

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

    👍👍👍👍👍

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

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

  • @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?

  • @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.

  • @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

  • @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 😂😂😂

  • @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.

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

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

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

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

  • @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.

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

    can't do partials

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

    Laravel-mix can be handy as well