compile adsage ad template.
install commend
npm install grunt-template-compile --save-dev
Gruntfile.js configs
compile : {
options : {
config : 'src/config.txt',
onlinedbhost : '172.16.60.71',
onlinedbuser : 'bc_reader',
onlinedbpawd : 'bc@$^read',
dbhost : '172.16.18.111',
dbuser : 'root',
dbpawd : '1qaz@WSX'
},
dev : {
cdnpath : 'http://cdn-dev.adsage.tk/st/',
src: ['src/*.html'],
dest: 'dist'
},
online : {
cdnpath : 'http://mws.adsage.com/mobisage/st/',
src: ['src/*.html'],
dest: 'dist'
}
}