https://github.com/nocpiun/webpack-feed-plugin
A webpack plugin for generating RSS feed files
https://github.com/nocpiun/webpack-feed-plugin
atom blog feed rss webpack webpack-plugin
Last synced: 3 months ago
JSON representation
A webpack plugin for generating RSS feed files
- Host: GitHub
- URL: https://github.com/nocpiun/webpack-feed-plugin
- Owner: nocpiun
- License: mit
- Created: 2024-02-23T02:56:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-23T03:31:28.000Z (over 2 years ago)
- Last Synced: 2025-10-19T10:08:32.959Z (9 months ago)
- Topics: atom, blog, feed, rss, webpack, webpack-plugin
- Language: JavaScript
- Homepage: https://npmjs.com/webpack-feed-plugin
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `webpack-feed-plugin`
**A webpack plugin for generating RSS feed files**
By NriotHrreion
---
## Installation
```bash
npm i webpack-feed-plugin
```
## Example
#### webpack.config.js
```js
var { WebpackFeedPlugin } = require("webpack-feed-plugin");
module.exports = {
plugins: [
new WebpackFeedPlugin({
site: "https://example.com",
postPath: path.resolve(__dirname, "../src/posts"),
postLink: "%s/%a", // Here: %s = https://example.com/blog, %a = Article Title
output: {
json: "feed.json",
atom: "feed.xml"
},
feedConfig: {
title: "My Feed",
description: "This is my feed, welcome to subscribe",
id: "https://example.com/blog",
link: "https://example.com/blog",
language: "en",
favicon: "https://example.com/favicon.ico",
copyright: `Copyright (c) ${new Date().getFullYear()} NriotHrreion`,
feedLinks: {
json: "https://example.com/feed.json",
atom: "https://example.com/feed.xml"
},
author: {
name: "NoahHrreion",
email: "nriot233@gmail.com",
link: "https://example.com"
}
}
})
]
}
```
#### Markdown front matter
```md
---
title: "This is an article"
author: NriotHrreion
photo: "/static/example.png"
excerpt: "This is a description of the article."
date: 2024-02-23
---
Article Contents...
```
## LICENSE
[MIT](./LICENSE)