forked from Semantic-Org/Semantic-UI-React
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.dll.js
More file actions
33 lines (28 loc) · 760 Bytes
/
webpack.dll.js
File metadata and controls
33 lines (28 loc) · 760 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
import webpack from 'webpack'
import config from './config'
const { paths } = config
const webpackDllConfig = { module: {} }
// ------------------------------------
// Entry Points
// ------------------------------------
webpackDllConfig.entry = {
vendor: config.compiler_vendor,
}
// ------------------------------------
// Bundle Output
// ------------------------------------
webpackDllConfig.output = {
path: paths.dll(),
filename: 'dll.[name].js',
library: '[name]_[hash]',
}
// ------------------------------------
// Plugins
// ------------------------------------
webpackDllConfig.plugins = [
new webpack.DllPlugin({
path: paths.base('dll', '[name]-manifest.json'),
name: '[name]_[hash]',
}),
]
export default webpackDllConfig