forked from fengoffice/fengoffice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
33 lines (30 loc) · 1 KB
/
webpack.config.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 path = require('path');
module.exports = {
entry: {
showWorkedHoursWidget: './public/assets/javascript/react_src/showWorkedHoursWidget.js',
showProjectStatisticsWidget: './public/assets/javascript/react_src/showProjectStatisticsWidget.js',
showExpensesProgressWidget: './public/assets/javascript/react_src/showExpensesProgressWidget.js',
showEarnedValueWidget: './public/assets/javascript/react_src/showEarnedValueWidget.js',
showFinancialsWidget: './public/assets/javascript/react_src/showFinancialsWidget.js'
},
output: {
libraryTarget: 'var',
library: '[name]',
filename: '[name].js',
path: __dirname + '/public/assets/javascript/react_production',
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: 'babel-loader'
}
]
},
optimization: {
splitChunks: {
chunks: 'all',
}
}
};