EmbarkJS/webpack.config.js

24 lines
531 B
JavaScript
Raw Permalink Normal View History

2018-07-06 00:26:14 +00:00
const path = require('path');
const standalone = {
entry: path.join(__dirname, 'dist/browser', 'browser.js'),
2018-07-06 00:26:14 +00:00
mode: 'production',
// optimization: {
// minimize: false
// },
output: {
filename: 'embark.min.js',
globalObject: 'typeof self !== \'undefined\' ? self : this',
2018-07-06 00:26:14 +00:00
library: 'EmbarkJS',
libraryTarget: 'umd',
libraryExport: 'default',
path: __dirname,
umdNamedDefine: true,
},
target: 'web'
};
module.exports = [
standalone
2018-07-06 00:26:14 +00:00
];