-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathwebpack.config.js
34 lines (32 loc) · 1.16 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
const path = require('path');
const {BuildConfig, ModuleConfig, WebpackConfigBuilder, Version, DesignType} = require('@bsi-cx/design-build');
module.exports = WebpackConfigBuilder.fromConfigs(
new BuildConfig()
.withName('email')
.withVersion('1.0.0')
.withDesignType(DesignType.EMAIL)
.withTargetVersion(Version.CX_1_3)
.withRootPath(path.resolve(__dirname, 'templates', 'email'))
.withPropertiesFilePath('properties.js'),
new BuildConfig()
.withName('landingpage')
.withVersion('1.0.0')
.withDesignType(DesignType.LANDINGPAGE)
.withTargetVersion(Version.CX_1_3)
.withRootPath(path.resolve(__dirname, 'templates', 'landingpage'))
.withPropertiesFilePath('properties.js')
.withModules(
new ModuleConfig()
.withName('main')
.withPath('main.js')),
new BuildConfig()
.withName('website')
.withVersion('1.0.0')
.withDesignType(DesignType.WEBSITE)
.withTargetVersion(Version.CX_1_3)
.withRootPath(path.resolve(__dirname, 'templates', 'website'))
.withPropertiesFilePath('properties.js')
.withModules(
new ModuleConfig()
.withName('main')
.withPath('main.js')));