-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathintercept.js
33 lines (32 loc) · 992 Bytes
/
intercept.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
module.exports = targets => {
targets.of('@magento/pwa-buildpack').specialFeatures.tap((flags) => {
flags[targets.name] = {
esModules: true,
cssModules: true,
graphqlQueries: true
};
});
targets.of('@magento/venia-ui').routes.tap((routes) => {
routes.push({
name: 'Blogs',
pattern: '/blog',
path: '@dankhrapiyush/blog/lib/components/Blogs'
});
routes.push({
name: 'BlogCategory',
pattern: '/blog/category/:id?',
path: '@dankhrapiyush/blog/lib/components/Category'
});
routes.push({
name: 'BlogTag',
pattern: '/blog/tag/:id?',
path: '@dankhrapiyush/blog/lib/components/Tag'
});
routes.push({
name: 'Blog',
pattern: '/blog/post/:id?',
path: '@dankhrapiyush/blog/lib/components/Blog'
});
return routes;
});
};