-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.dll.config.js
More file actions
46 lines (35 loc) · 886 Bytes
/
webpack.dll.config.js
File metadata and controls
46 lines (35 loc) · 886 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
36
37
38
39
40
41
42
43
44
45
46
const webpack = require('webpack');
const helpers = require('./webpack.helpers');
module.exports = {
entry: {
vendor: [
helpers.root('./src/browser/vendor.ts'),
]
},
resolve: {
extensions: ['.js', '.ts'],
modules: [
helpers.root('./src/browser'),
helpers.root('./node_modules')
],
},
cache: true,
target: "electron-renderer",
node: {
__dirname: true,
__filename: true
},
plugins: [
new webpack.DllPlugin({
path: helpers.root('build/dll/[name]-manifest.json'),
name: "[name]",
context: helpers.root('src/browser')
}),
new webpack.optimize.UglifyJsPlugin()
],
output: {
path: helpers.root('build/dll'),
filename: "dll.[name].js",
library: "[name]"
},
};