Add badges to stats in a newsletter listing, change stats style [PREMIUM-1] [MAILPOET-877]

This commit is contained in:
Alexey Stoletniy
2017-04-12 19:52:29 +03:00
parent 72aa087411
commit e9070de9c4
8 changed files with 311 additions and 91 deletions

View File

@ -81,6 +81,10 @@ baseConfig = {
test: /listing.jsx/i,
loader: 'expose-loader?' + globalPrefix + '.Listing!babel-loader',
},
{
include: path.resolve(__dirname, 'assets/js/src/newsletters/badges/stats.jsx'),
loader: 'expose-loader?' + globalPrefix + '.StatsBadge!babel-loader',
},
{
include: /Blob.js$/,
loader: 'exports-loader?window.Blob',
@ -134,7 +138,8 @@ config.push(_.extend({}, baseConfig, {
'react-dom',
'react-router',
'react-string-replace',
'listing/listing.jsx'
'listing/listing.jsx',
'newsletters/badges/stats.jsx'
],
admin: [
'subscribers/subscribers.jsx',