File tree Expand file tree Collapse file tree
handlers/newsletter/tasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 }
1717}
1818
19- if ( ! window . localStorage ) { // disabled
20-
21- }
22-
2319require ( './unready' ) ;
2420
2521//exports.init = require('./init');
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ module.exports = function(options) {
2424 . describe ( 'subject' , 'Тема письма' )
2525 . describe ( 'test' , 'Email, на который выслать тестовое письмо.' )
2626 . describe ( 'nounsubscribe' , 'Без ссылки на отписку.' )
27+ . describe ( 'track' , 'Отслеживать переходы.' )
2728 . demand ( [ 'slug' , 'templatePath' , 'subject' ] )
2829 . argv ;
2930
@@ -113,6 +114,7 @@ module.exports = function(options) {
113114 yield * mailer . createLetter ( {
114115 from : 'informer' ,
115116 templatePath : args . templatePath ,
117+ track_clicks : args . track ? true : false ,
116118 to : subscription . email ,
117119 subject : args . subject ,
118120 unsubscribeUrl : unsubscribeUrl ,
Original file line number Diff line number Diff line change @@ -44,9 +44,11 @@ var webpackConfig = {
4444 } ,
4545
4646 cache : process . env . NODE_ENV == 'development' ,
47+
4748 watchOptions : {
4849 aggregateTimeout : 10
4950 } ,
51+
5052 watch : process . env . NODE_ENV == 'development' ,
5153
5254 devtool : process . env . NODE_ENV == 'development' ? "" : // try "eval" ?
You can’t perform that action at this time.
0 commit comments