forked from Semantic-Org/Semantic-UI-React
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.dll.js
33 lines (28 loc) · 772 Bytes
/
webpack.dll.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
const webpack = require('webpack')
const config = require('./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]',
}),
]
module.exports = webpackDllConfig