Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

Issue watching already minified files #63

Closed

Description

@timshannon

Lets say I have a source folder with already minified js files:

|--src
   |--js    
      |--ractive.min.js
|--gobblefile.js   

And your gobble file is setup to just copy the already minified file:

var gobble = require("gobble");
module.exports = gobble("src");

Then run gobble watch out

You'll get a ENOENT error looking for a .map file.

If you manually add the map file:

|--src
   |--js    
      |--ractive.min.js
      |--ractive.min.js.map
|--gobblefile.js   

You'll remove the error, but it'll continually invalidate the build over and over

tshannon@git:~/workspace/test$ gobble watch out
gobble: build completed in 5037ms. Listening for changes...

gobble:



build invalidated (2 files changed). restarting
gobble: build completed in 4509ms. Listening for changes...

gobble:



build invalidated (2 files changed). restarting
gobble: build completed in 4458ms. Listening for changes...

gobble:



build invalidated (2 files changed). restarting
gobble: build completed in 3683ms. Listening for changes...

gobble:



build invalidated (2 files changed). restarting
gobble: build completed in 4205ms. Listening for changes...

gobble:

Activity

  1. Rich-Harris commented on May 6, 2015

    @Rich-Harris
    Contributor

    This was happening because gobble was writing the 'flattened' sourcemaps to the final directory of the build, rather than creating a separate one. In this case, the final directory is also the source directory... so flattening the sourcemap triggered an unnecessary rebuild. Is fixed in 0.9.3. Thanks for raising it

  2. timshannon commented on May 6, 2015

    @timshannon
    Author

    Working great for me.

    Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions