forked from Pylons/trypyramid.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.tmpl.config.js
71 lines (68 loc) · 2.33 KB
/
webpack.tmpl.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
var path = require('path');
var baseDir = __dirname + '/src/templates';
var config = {
templates: [
{
template: 'src/templates/index.ejs',
filename: 'index.html',
uglify: true,
context: require(path.resolve(baseDir, 'index.json')),
page: 'index.html'
}, {
template: 'src/templates/colors.ejs',
filename: 'colors.html',
uglify: true,
context: require(path.resolve(baseDir, 'colors.json')),
page: 'colors.html'
}, {
template: 'src/templates/resources.ejs',
filename: 'resources.html',
uglify: true,
context: require(path.resolve(baseDir, 'resources.json')),
page: 'resources.html'
}, {
template: 'src/templates/resources-extending-pyramid.ejs',
filename: 'resources-extending-pyramid.html',
uglify: true,
context: require(path.resolve(baseDir, 'resources-extending-pyramid.json')),
page: 'resources-extending-pyramid.html'
}, {
template: 'src/templates/community.ejs',
filename: 'community.html',
uglify: true,
context: require(path.resolve(baseDir, 'community.json')),
page: 'community.html'
}, {
template: 'src/templates/community-powered-by-pyramid.ejs',
filename: 'community-powered-by-pyramid.html',
uglify: true,
context: require(path.resolve(baseDir, 'community-powered-by-pyramid.json')),
page: 'community-powered-by-pyramid.html'
}, {
template: 'src/templates/community-sponsors.ejs',
filename: 'community-sponsors.html',
uglify: true,
context: require(path.resolve(baseDir, 'community-sponsors.json')),
page: 'community-sponsors.html'
}, {
template: 'src/templates/community-events.ejs',
filename: 'community-events.html',
uglify: true,
context: require(path.resolve(baseDir, 'community-events.json')),
page: 'community-events.html'
}, {
template: 'src/templates/media-feeds.ejs',
filename: 'media-feeds.html',
uglify: true,
context: require(path.resolve(baseDir, 'media-feeds.json')),
page: 'media-feeds.html'
}, {
template: 'src/templates/media-artwork.ejs',
filename: 'media-artwork.html',
uglify: true,
context: require(path.resolve(baseDir, 'media-artwork.json')),
page: 'media-artwork.html'
}
]
};
module.exports = config;