UNPKG

505 BJavaScriptView Raw
1const project = require('./package.json')
2
3module.exports = {
4 alias: {
5 '~/data': 'res/data'
6 },
7 html: [
8 {filename: 'index.html', template: 'res/index.pug'},
9 {filename: 'cordova.html', template: 'res/cordova.pug'}
10 ],
11 plugins: ['pug', 'stylus'],
12 replace: [
13 {search: '{!application-name!}', replace: project.name, flags: 'g'},
14 {search: '{!application-version!}', replace: project.version, flags: 'g'}
15 ],
16 port: 1987,
17 static: [
18 {from: 'res/images', to: 'images'}
19 ]
20}