1 // Original from https://github.com/mxstbr/react-boilerplate/
6 * WEBPACK DLL GENERATOR
8 * This profile is used to cache webpack's module
9 * contexts for external library and framework type
10 * dependencies which will usually not change often enough
11 * to warrant building them from scratch every time we use
12 * the webpack process.
15 const { join } = require('path')
16 const webpack = require('webpack')
17 const pkg = require(join(process.cwd(), 'package.json'))
19 const outputPath = join(process.cwd(), 'node_modules/dashboard-dlls')
21 const dllException = ['log4js', 'electron-settings', 'glob', 'toml']
23 const config = require('./webpack.base')({
24 context: process.cwd(),
25 entry: {dependencies: Object.keys(pkg.dependencies).filter(dependency => !dllException.includes(dependency))},
28 filename: '[name].dll.js',
33 new webpack.DllPlugin({
35 path: join(outputPath, 'manifest.json')
40 module.exports = config