forked from Pylons/trypyramid.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.tmpl.config.js
47 lines (44 loc) · 1.45 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
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'
}
]
};
module.exports = config;