Skip to content

When serving using a development server, the files are not properly refreshed  #10

@julienw

Description

@julienw

I use gobble@0.10.2 and gobble-browserify@0.6.1.

Here is my quite simple gobblefile:

'use strict';
var gobble = require('gobble');

module.exports = gobble([
  gobble('src/root'),
  gobble('src/js').transform('babel', {}).transform('browserify', {
    entries: 'wobble.js',
    dest: 'bundle.js'
  })
]);

When I change a dependency (even a direct dependency from the main js file) the bundle.js file is not properly updated automatically, despite gobble outputting:

build invalidated (1 file changed). restarting
gobble: 01-babel done in 1ms
gobble: 02-browserify done in 33ms
gobble: 03-merge done in 2ms
gobble: build completed in 39ms
gobble:

I use ES6 modules transformed by babel, so maybe that could be a reason, but I don't believe so. Looking into the .gobblz directory I can see that Babel properly picks up my changes but not browserify.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions