From c6db0116cc8edc8dd26bf674a292321a153d623c Mon Sep 17 00:00:00 2001 From: Jonathan Putney Date: Mon, 18 Nov 2019 13:12:58 -0500 Subject: [PATCH] Making browserify export classes as standalone file --- gruntfile.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gruntfile.js b/gruntfile.js index 2da4308..8b8ae44 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -7,7 +7,10 @@ module.exports = function(grunt) { ], dest: './dist/scorm-again.js', options: { - browserifyOptions: {debug: true}, + browserifyOptions: { + debug: true, + standalone: true, + }, transform: [ [ 'babelify', { @@ -28,7 +31,10 @@ module.exports = function(grunt) { ], dest: './dist/scorm-again.min.js', options: { - browserifyOptions: {debug: true}, + browserifyOptions: { + debug: true, + standalone: true, + }, transform: [ [ 'babelify', {