Giter Club home page Giter Club logo

Comments (4)

helau64 avatar helau64 commented on May 30, 2024

You'll want to be putting your assets folder in your project's root; it, and all the contents, will be copied over to _site when you run gulp. The reason they're disappearing is because _site is generated from the contents in your root – as the assets folder doesn't exist in the root, it's being removed.

from jekyll-gulp-sass-browser-sync.

dwadp avatar dwadp commented on May 30, 2024

Ok thanks, heatherlauren

from jekyll-gulp-sass-browser-sync.

dwadp avatar dwadp commented on May 30, 2024

Yeah, but the problem is, when the gulp command is running, and i put something in assets root folder. Its not copied into _site folder, and i have to restart the gulp command to do that. Do you know how to automatically copied all files in assets root dir to _site without restarting gulp command?

from jekyll-gulp-sass-browser-sync.

helau64 avatar helau64 commented on May 30, 2024

That isn't really how it works. Gulp is a task runner, so when you run gulp, it performs a series of tasks. In this case, one of them is building the Jekyll site by copying your files into _site. While you could write your own task to have Gulp detect when a new file is added to assets and copy it over to _site/assets (similar to how changes to your Sass are detected), I can't see a use-case where it would be necessary. Just run gulp after you add your assets.

from jekyll-gulp-sass-browser-sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.