File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change
1
+ const { configValidator, registerPlugin} = require ( '../dist/scully' ) ;
2
+
3
+ const voidPlugin = async ( route , options ) => {
4
+ /**
5
+ * I don't do anything here,
6
+ * just return an empty array
7
+ * as that will effectively remove the route from the list
8
+ * */
9
+ return [ ] ;
10
+ } ;
11
+
12
+ voidPlugin [ configValidator ] = async conf => [ ] ;
13
+ registerPlugin ( 'router' , 'void' , voidPlugin ) ;
Original file line number Diff line number Diff line change 1
1
/** load the plugin */
2
2
require ( './extraPlugin/extra-plugin.js' ) ;
3
+ require ( './extraPlugin/voidPlugin' ) ;
3
4
4
5
exports . config = {
5
6
/** projectRoot is mandatory! */
@@ -88,5 +89,8 @@ exports.config = {
88
89
folder : './blog' ,
89
90
} ,
90
91
} ,
92
+ '/**' : {
93
+ type : 'void' ,
94
+ } ,
91
95
} ,
92
96
} ;
You can’t perform that action at this time.
0 commit comments