|
|
@@ -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'
|
|
|
})
|
|
|
]
|
|
|
};
|