Skip to content

Commit

Permalink
exclude 404 from sitemap.xml, fixes #30
Browse files Browse the repository at this point in the history
  • Loading branch information
ericalli committed Jun 15, 2019
1 parent 81578ae commit c8899a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/webpack.plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ const paths = [];
const generateHTMLPlugins = () => glob.sync('./src/**/*.html').map((dir) => {
const filename = path.basename(dir);

paths.push(filename);
if (filename !== '404.html') {
paths.push(filename);
}

return new HTMLWebpackPlugin({
filename,
Expand Down

0 comments on commit c8899a2

Please sign in to comment.