Making browserify export classes as standalone file
This commit is contained in:
10
gruntfile.js
10
gruntfile.js
@@ -7,7 +7,10 @@ module.exports = function(grunt) {
|
|||||||
],
|
],
|
||||||
dest: './dist/scorm-again.js',
|
dest: './dist/scorm-again.js',
|
||||||
options: {
|
options: {
|
||||||
browserifyOptions: {debug: true},
|
browserifyOptions: {
|
||||||
|
debug: true,
|
||||||
|
standalone: true,
|
||||||
|
},
|
||||||
transform: [
|
transform: [
|
||||||
[
|
[
|
||||||
'babelify', {
|
'babelify', {
|
||||||
@@ -28,7 +31,10 @@ module.exports = function(grunt) {
|
|||||||
],
|
],
|
||||||
dest: './dist/scorm-again.min.js',
|
dest: './dist/scorm-again.min.js',
|
||||||
options: {
|
options: {
|
||||||
browserifyOptions: {debug: true},
|
browserifyOptions: {
|
||||||
|
debug: true,
|
||||||
|
standalone: true,
|
||||||
|
},
|
||||||
transform: [
|
transform: [
|
||||||
[
|
[
|
||||||
'babelify', {
|
'babelify', {
|
||||||
|
|||||||
Reference in New Issue
Block a user