-
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathwebpack.config.js
More file actions
33 lines (30 loc) · 892 Bytes
/
webpack.config.js
File metadata and controls
33 lines (30 loc) · 892 Bytes
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: {
'faq': './src/js/faq.js',
'index': './src/js/index.js',
'main': './src/js/main.js',
'report': './src/js/report.js',
'histogram': './src/js/histogram.js',
'timeseries': './src/js/timeseries.js',
'send-web-vitals': './src/js/send-web-vitals.js',
// Techreport
'techreport': './src/js/techreport/index.js',
'techreport/timeseries': './src/js/techreport/timeseries.js',
'techreport/section': './src/js/techreport/section.js',
'techreport/geoBreakdown': './src/js/techreport/geoBreakdown.js',
'techreport/cwvDistribution': './src/js/techreport/cwvDistribution.js',
},
output: {
path: path.resolve(__dirname, 'static/js'),
filename: '[name].js'
},
module: {
rules: [
{
test: /\.js$/,
exclude: /(node_modules)|(static)/,
}
]
}
};