Yuki Takei 7 лет назад
Родитель
Сommit
2bc74c4388
2 измененных файлов с 22 добавлено и 9 удалено
  1. 2 2
      config/webpack.dev.js
  2. 20 7
      config/webpack.dll.js

+ 2 - 2
config/webpack.dev.js

@@ -42,8 +42,8 @@ module.exports = require('./webpack.common')({
   plugins: [
 
     new webpack.DllReferencePlugin({
-      context: helpers.root('public/dll'),
-      manifest: path.join(helpers.root('public/dll'), 'manifest.json')
+      context: helpers.root(),
+      manifest: require(helpers.root('public/dll', 'manifest.json')),
     }),
 
     new BundleAnalyzerPlugin({

+ 20 - 7
config/webpack.dll.js

@@ -1,7 +1,6 @@
 /**
  * @author: Yuki Takei <yuki@weseek.co.jp>
  */
-const path = require('path');
 const webpack = require('webpack');
 const helpers = require('./helpers');
 
@@ -10,16 +9,30 @@ module.exports = {
   mode: 'development',
   entry: {
     dlls: [
+      'browser-bunyan', 'bunyan-format',
+      'axios',
+      'bootstrap-select',
+      'clipboard',
+      'date-fns',
+      'debug',
+      'entities',
       'react', 'react-dom', 'react-bootstrap', 'react-bootstrap-typeahead', 'react-i18next',
       'codemirror', 'react-codemirror2', 'react-dropzone',
-      'jquery-slimscroll', 'jquery-ui',
-      'markdown-it',
-      'diff2html', 'lodash', 'i18next',
+      'jquery-slimscroll',
+      'markdown-it', 'csv-to-markdown-table',
+      'diff2html',
+      'lodash', 'pako',
+      'i18next', 'i18next-browser-languagedetector',
+      'socket.io-client',
+      'toastr',
+      'xss',
+      'growi-pluginkit',
     ]
   },
   output: {
     path: helpers.root('public/dll'),
-    filename: 'dll.js'
+    filename: 'dll.js',
+    library: 'growi_dlls',
   },
   resolve: {
     extensions: ['.js', '.json'],
@@ -27,8 +40,8 @@ module.exports = {
   },
   plugins: [
     new webpack.DllPlugin({
-      path: path.join(helpers.root('public/dll'), 'manifest.json'),
-      name: '[name]_[hash]'
+      path: helpers.root('public/dll/manifest.json'),
+      name: 'growi_dlls'
     })
   ]
 };