D3R / gulp-bundle

Moves assets into the web directory based on a bundle config file
0 stars 0 forks source link

Sometimes when copying a folder, the entire path is added #6

Open dmnc opened 2 years ago

dmnc commented 2 years ago

Here is an example: https://github.com/D3R/andrewmartin/blob/master/resources/bundles/videojs.bundle.json#L10

Steps to reproduce:

  1. Check out Andrew Martin.
  2. Run rm -rf web/css/video-js/font/ to delete the folder.
  3. Run gulp bundle.
  4. ls web/css/video-js/font you will see a node_modules folder.
dmnc commented 2 years ago

A config like this seems to give a whole folder:

{
    "assets": {
        "javascript/ckeditor/": "/node_modules/ckeditor4/**/*"
    }
}