EmbarkJS/webpack.config.js

24 lines
528 B
JavaScript

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