PixelStreamingInfrastructure/Frontend/ui-library/webpack.prod.js

37 lines
783 B
JavaScript

// Copyright Epic Games, Inc. All Rights Reserved.
const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
const prodCommon = {
mode: 'production',
optimization: {
usedExports: true,
minimize: true
},
stats: 'errors-only',
};
module.exports = [
merge(common, prodCommon, {
output: {
filename: 'lib-pixelstreamingfrontend-ui.js',
library: {
name: 'lib-pixelstreamingfrontend-ui', // exposed variable that will provide access to the library classes
type: 'umd'
},
},
}),
merge(common, prodCommon, {
output: {
filename: 'lib-pixelstreamingfrontend-ui.esm.js',
library: {
type: 'module'
},
},
experiments: {
outputModule: true
}
})
];