EmbarkJS/webpack.config.js

24 lines
528 B
JavaScript
Raw Normal View History

2018-07-06 00:26:14 +00:00
const path = require('path');
const standalone = {
entry: path.join(__dirname, 'dist/browser', 'index.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
2018-07-06 00:26:14 +00:00
},
target: 'web'
};
module.exports = [
standalone
2018-07-06 00:26:14 +00:00
];