@@ -56,7 +56,7 @@ function addBanner( str ) {
5656var rjsOptimize = require ( 'gulp-requirejs-optimize' ) ;
5757
5858gulp . task ( 'requirejs' , function ( ) {
59- var definitionRE = / d e f i n e \( \s * ' i s o t o p e \/ i s o t o p e ' ( .| \n ) + \] , / ;
59+ var definitionRE = / d e f i n e \( \s * ' i s o t o p e \- l a y o u t \/ \j s \ /i s o t o p e ' ( .| \n ) + \] , / ;
6060 var banner = getBanner ( ) ;
6161 // HACK src is not needed
6262 // should refactor rjsOptimize to produce src
@@ -66,21 +66,20 @@ gulp.task( 'requirejs', function() {
6666 optimize : 'none' ,
6767 include : [
6868 'jquery-bridget/jquery-bridget' ,
69- 'isotope/isotope'
69+ 'isotope-layout/js /isotope'
7070 ] ,
7171 paths : {
72- isotope : '../js /' ,
72+ ' isotope-layout' : '../' ,
7373 jquery : 'empty:'
7474 }
7575 } ) )
7676 // munge AMD definition
7777 . pipe ( replace ( definitionRE , function ( definition ) {
7878 // remove named module
79- return definition . replace ( "'isotope/isotope'," , '' )
80- // use explicit file paths, './item' -> 'isotope/js/item'
81- . replace ( / ' .\/ / g, "'isotope/js/" ) ;
79+ return definition . replace ( "'isotope-layout/js /isotope'," , '' )
80+ // use explicit file paths, './item' -> 'isotope-layout /js/item'
81+ . replace ( / ' .\/ / g, "'isotope-layout /js/" ) ;
8282 } ) )
83- . pipe ( replace ( "define( 'isotope/" , "define( 'isotope/js/" ) )
8483 // add banner
8584 . pipe ( addBanner ( banner ) )
8685 . pipe ( rename ( 'isotope.pkgd.js' ) )
0 commit comments