Skip to content
This repository was archived by the owner on May 14, 2018. It is now read-only.
This repository was archived by the owner on May 14, 2018. It is now read-only.

It always be wrong when I use amd-optimize like this.i'm really confused #75

@kuangrs

Description

@kuangrs

project structure
image

gulfile.js

gulp.task('base', function () {
    return amdOptimize.src('./js/init')
    .pipe(concat('base.js'))
    .pipe(gulpif(con, uglify()))
    .pipe(gulp.dest('./js/dist'));
});

./js/init.js

require.config({
    "paths": {
        'Datepicker':'modules/datepicker',
	'PopUpBox':'modules/popupbox'
    }
});


require(['Datepicker', 'PopUpBox'], function(){
    console.log('hello');
});

wrong message when executing gulpfile.js
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions