-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
36 lines (34 loc) · 1.22 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
34
35
36
const webpack = require('webpack');
const JazzUpdateSitePlugin = require('jazz-update-site-webpack-plugin');
const packageJson = require('./package.json');
module.exports = (env) => {
env && env.buildUUID && console.info(`Build UUID is passed along: '${env.buildUUID}'`);
const version = env && env.buildUUID || packageJson.version;
const config = {
entry: {
LinkCreator: './index.js' // not used, prevent webpack from failing
},
output: {
filename: '[name]Bundle.js' // not used, prevent webpack from failing
},
plugins: [
new JazzUpdateSitePlugin({
appType: 'ccm',
projectId: "com.siemens.bt.jazz.viewlet.myteams",
acceptGlobPattern: [
'resources/**',
'META-INF/**',
'plugin.xml',
],
projectInfo: {
author: packageJson.author,
copyright: packageJson.author,
description: packageJson.description,
license: packageJson.license,
version: version,
},
}),
],
};
return config;
};