Simple Chat Room in NodeJS, expressJS and mongoDB in Docker Swarm
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
617 B

4 years ago
'use strict';
const paths = require('path');
const base = require('./webpack.base.config.js');
const webpackConfig = Object.assign({}, base, {
entry: require.resolve('./browser.js'),
output: {
filename: './dist/browser.umd.js',
path: paths.resolve(__dirname, ''),
library: 'mongoose',
libraryTarget: 'umd',
// override default 'window' globalObject so browser build will work in SSR environments
// may become unnecessary in webpack 5
globalObject: 'typeof self !== \'undefined\' ? self : this'
},
externals: [
/^node_modules\/.+$/
]
});
module.exports = webpackConfig;