forked from mosheFuks/PixelStreamingInfrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.dev.js
More file actions
35 lines (32 loc) · 756 Bytes
/
webpack.dev.js
File metadata and controls
35 lines (32 loc) · 756 Bytes
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
// Copyright Epic Games, Inc. All Rights Reserved.
const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
const devCommon = {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
static: './dist',
}
};
module.exports = [
merge(common, devCommon, {
output: {
filename: 'lib-pixelstreamingfrontend.js',
library: {
name: 'lib-pixelstreamingfrontend', // exposed variable that will provide access to the library classes
type: 'umd'
},
},
}),
merge(common, devCommon, {
output: {
filename: 'lib-pixelstreamingfrontend.esm.js',
library: {
type: 'module'
},
},
experiments: {
outputModule: true
}
})
];