Skip to content
This repository has been archived by the owner on Dec 26, 2018. It is now read-only.

Fixes #138 Fixes #162 Optionally apply config #179

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Feb 23, 2017

  1. Fixes vuejs#138 Fixes vuejs#162 Optionally apply config

    options._flags is not always set when using browserify transformations
    
    - version affected: "vueify": "^9.4.0"
    
    Example of failure in gulp file
    
    ```javascript
    // package.json
    gulp.task('all', function() {
        process.env.NODE_ENV = 'production';
        return browserify('./source/js/all.js')
            .transform(babelify.configure({ presets: ["es2015"]}))
            .transform(vueify)
            .bundle()
            .pipe(source('./js/all.js'))
            .pipe(buffer())
            .pipe(rev())
            .pipe(gulp.dest(pub))
            .pipe(rev.manifest('./build/rev-manifest.json', {
              base: '',
              merge: true
            }))
            .pipe(gulp.dest('.'));
    });
    
    ```
    
    ```bash
    $ gulp all
    
    [19:15:56] Using gulpfile ~/gulpfile.js
    [19:15:56] Starting 'all'...
    code/node_modules/vueify/index.js:12
        sourceMap: options._flags.debug
                                 ^
    
    TypeError: Cannot read property 'debug' of undefined
        at vueify (code/node_modules/vueify/index.js:12:30)
    
    ```
    thomas07vt committed Feb 23, 2017
    Configuration menu
    Copy the full SHA
    acd94fe View commit details
    Browse the repository at this point in the history