Skip to content

Commit

Permalink
fix: updated some webpack settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ravgeetdhillon committed Oct 20, 2021
1 parent 4404f8f commit a1bd718
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ export default async function getNewFeedItems() {
allNewFeedItems = [...allNewFeedItems, ...feedItems];
}

// sort feed items by published date
allNewFeedItems.sort((a, b) => new Date(a.pubDate) - new Date(b.pubDate));

return allNewFeedItems;
}
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = (env) => {
extensions: ['.js'],
},
optimization: {
minimize: isProductionMode,
minimize: false,
},
performance: {
hints: false,
Expand Down

0 comments on commit a1bd718

Please sign in to comment.