mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-16 16:19:48 -05:00
avoid view if static
This commit is contained in:
parent
4b6cc3dfa2
commit
003039dd47
1 changed files with 3 additions and 1 deletions
|
@ -7,7 +7,9 @@ var entry = {
|
|||
main: './src/main.jsx'
|
||||
};
|
||||
routes.forEach(function (route) {
|
||||
entry[route.view] = './src/views/' + route.view + '/' + route.view + '.jsx';
|
||||
if ( ! route.static ) {
|
||||
entry[route.view] = './src/views/' + route.view + '/' + route.view + '.jsx';
|
||||
}
|
||||
});
|
||||
|
||||
// Config
|
||||
|
|
Loading…
Reference in a new issue