fix umd output so standalone embark.min.js works in node.js also

This commit is contained in:
Michael Bradley, Jr 2018-07-08 22:00:54 -05:00
parent 7b65008763
commit 3497d3bb02
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
const path = require('path');
const browser = {
const standalone = {
entry: path.resolve(__dirname, 'src') + '/browser.js',
mode: 'production',
module: {
@ -25,6 +25,7 @@ const browser = {
// },
output: {
filename: 'embark.min.js',
globalObject: 'typeof self !== \'undefined\' ? self : this',
library: 'EmbarkJS',
libraryTarget: 'umd',
libraryExport: 'default',
@ -35,5 +36,5 @@ const browser = {
};
module.exports = [
browser
standalone
];