0.1.0 • Published 8 years ago
html-webpack-sitemap-plugin v0.1.0
html-webpack-sitemap-plugin
Installation
Install the plugin with npm:
$ npm install html-webpack-sitemap-plugin --save-dev
Basic Usage
var HtmlWebpackSitemapPlugin = require('html-webpack-sitemap-plugin');
var Paths = [{
loc: '/',
priority: '0.8',
lastmod: '2017-10-20',
changeFreq: 'daily'
},
{
loc: '/about',
priority: '0.8',
lastmod: '2017-10-20',
changeFreq: 'weekly'
}]
var webpackConfig = {
entry: 'index.js',
output: {
path: __dirname + '/dist',
filename: 'index_bundle.js'
},
plugins: [
new HtmlWebpackSitemapPlugin('https://voorraad.co.za', {
urls: Paths
}
]
};
0.1.0
8 years ago