forked from EpicGames/PixelStreamingInfrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.common.js
37 lines (35 loc) · 946 Bytes
/
webpack.common.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright Epic Games, Inc. All Rights Reserved.
const package = require('./package.json');
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: {
index: './src/pixelstreamingfrontend-ui.ts'
},
module: {
rules: [
{
test: /\.tsx?$/,
loader: 'ts-loader',
exclude: [/node_modules/]
}
]
},
resolve: {
extensions: ['.tsx', '.ts', '.js']
},
externals: {
'@epicgames-ps/lib-pixelstreamingfrontend-ue5.4': '@epicgames-ps/lib-pixelstreamingfrontend-ue5.4',
jss: 'jss',
'jss-plugin-camel-case': 'jss-plugin-camel-case',
'jss-plugin-global': 'jss-plugin-global'
},
plugins: [
new webpack.DefinePlugin({
LIBRARY_VERSION: JSON.stringify(package.version)
})
],
output: {
globalObject: 'this'
}
};