diff options
Diffstat (limited to 'core/webpack.js')
-rw-r--r-- | core/webpack.js | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/core/webpack.js b/core/webpack.js index 631f1532399..cf9c332ead0 100644 --- a/core/webpack.js +++ b/core/webpack.js @@ -4,19 +4,20 @@ const webpack = require('webpack') module.exports = [ { entry: { + files_client: path.join(__dirname, 'src/files/client.js'), + files_fileinfo: path.join(__dirname, 'src/files/fileinfo.js'), + files_iedavclient: path.join(__dirname, 'src/files/iedavclient.js'), + install: path.join(__dirname, 'src/install.js'), login: path.join(__dirname, 'src/login.js'), main: path.join(__dirname, 'src/main.js'), maintenance: path.join(__dirname, 'src/maintenance.js'), recommendedapps: path.join(__dirname, 'src/recommendedapps.js'), - install: path.join(__dirname, 'src/install.js'), - files_client: path.join(__dirname, 'src/files/client.js'), - files_fileinfo: path.join(__dirname, 'src/files/fileinfo.js'), - files_iedavclient: path.join(__dirname, 'src/files/iedavclient.js') + 'unified-search': path.join(__dirname, 'src/unified-search.js'), }, output: { filename: '[name].js', path: path.resolve(__dirname, 'js/dist'), - jsonpFunction: 'webpackJsonpCore' + jsonpFunction: 'webpackJsonpCore', }, module: { rules: [ @@ -26,25 +27,25 @@ module.exports = [ options: { type: 'commonjs', exports: 'dav', - } - } - ] + }, + }, + ], }, plugins: [ new webpack.ProvidePlugin({ - '_': "underscore", - $: "jquery", - jQuery: "jquery" - }) - ] + '_': 'underscore', + $: 'jquery', + jQuery: 'jquery', + }), + ], }, { entry: { - systemtags: path.resolve(__dirname, 'src/systemtags/merged-systemtags.js') + systemtags: path.resolve(__dirname, 'src/systemtags/merged-systemtags.js'), }, output: { filename: '[name].js', - path: path.resolve(__dirname, 'js/dist') - } - } + path: path.resolve(__dirname, 'js/dist'), + }, + }, ] |