File tree 3 files changed +10
-7
lines changed
3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -129,8 +129,8 @@ module.exports = function(grunt) {
129
129
output : {
130
130
filename : 'materialize.js' ,
131
131
path : path . resolve ( __dirname , 'dist/js' ) ,
132
- libraryTarget : 'var' ,
133
- library : 'M'
132
+ libraryTarget : 'umd' ,
133
+ globalObject : 'this'
134
134
}
135
135
} ) ,
136
136
@@ -140,8 +140,8 @@ module.exports = function(grunt) {
140
140
output : {
141
141
filename : 'materialize.min.js' ,
142
142
path : path . resolve ( __dirname , 'dist/js' ) ,
143
- libraryTarget : 'var' ,
144
- library : 'M'
143
+ libraryTarget : 'umd' ,
144
+ globalObject : 'this'
145
145
}
146
146
} ) ,
147
147
} ,
Original file line number Diff line number Diff line change @@ -382,4 +382,4 @@ export class M {
382
382
}
383
383
}
384
384
385
- module . exports = M
385
+ export default M ;
Original file line number Diff line number Diff line change @@ -29,7 +29,10 @@ module.exports = {
29
29
output : {
30
30
filename : 'materialize.js' ,
31
31
path : path . resolve ( __dirname , 'bin' ) ,
32
- libraryTarget : 'var' ,
33
- library : 'M'
32
+ libraryTarget : 'umd' ,
33
+ globalObject : 'this'
34
+ } ,
35
+ optimization : {
36
+ minimize : false ,
34
37
}
35
38
} ;
You can’t perform that action at this time.
0 commit comments