mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-22 15:17:53 -05:00
Don't try to output HTML for redirect routes
This commit is contained in:
parent
c274de7295
commit
fb3de8526a
1 changed files with 10 additions and 7 deletions
|
@ -102,13 +102,16 @@ module.exports = {
|
|||
},
|
||||
plugins: [
|
||||
new VersionPlugin({length: 5})
|
||||
].concat(routes.map(function (route) {
|
||||
return new HtmlWebpackPlugin(defaults({}, require('./src/template-config.js'), {
|
||||
title: route.title,
|
||||
filename: route.name + '.html',
|
||||
route: route
|
||||
}));
|
||||
})).concat([
|
||||
].concat(routes
|
||||
.filter(function (route) {return !route.redirect;})
|
||||
.map(function (route) {
|
||||
return new HtmlWebpackPlugin(defaults({}, require('./src/template-config.js'), {
|
||||
title: route.title,
|
||||
filename: route.name + '.html',
|
||||
route: route
|
||||
}));
|
||||
})
|
||||
).concat([
|
||||
new CopyWebpackPlugin([
|
||||
{from: 'static'},
|
||||
{from: 'intl', to: 'js'}
|
||||
|
|
Loading…
Reference in a new issue