File tree Expand file tree Collapse file tree 3 files changed +15
-12
lines changed Expand file tree Collapse file tree 3 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -88,8 +88,11 @@ function root(contentCb) {
88
88
} ,
89
89
processPage : processPage ( ) , // Process individual page (url, content)
90
90
layouts : { // Layouts (page/section)
91
- page : function ( ) {
91
+ index : function ( ) {
92
92
return require ( './components/splash/splash.jsx' ) . default
93
+ } ,
94
+ page : function ( ) {
95
+ return require ( './components/page/page.jsx' ) . default
93
96
}
94
97
} ,
95
98
redirects : { } // Redirects <from>: <to>
Original file line number Diff line number Diff line change 1
1
const antwar = require ( 'antwar' ) ;
2
- const webpack = require ( './webpack.config' ) ;
3
- const configuration = require ( './antwar.config' ) ;
2
+
3
+ const environment = process . env . npm_lifecycle_event ;
4
4
5
5
// Patch Babel env to make HMR switch work
6
- process . env . BABEL_ENV = process . env . npm_lifecycle_event ;
6
+ process . env . BABEL_ENV = environment ;
7
7
8
- antwar ( {
9
- configuration ,
10
- environment : process . env . npm_lifecycle_event ,
11
- webpack
8
+ antwar [ environment ] ( {
9
+ environment ,
10
+ antwar : require ( './antwar.config' ) ,
11
+ webpack : require ( './webpack.config' )
12
12
} ) . catch ( function ( err ) {
13
13
console . error ( err ) ;
14
14
} ) ;
Original file line number Diff line number Diff line change 36
36
},
37
37
"devDependencies" : {
38
38
"alex" : " ^3.1.0" ,
39
- "antwar" : " 0.8.1-alpha.fb334255 " ,
40
- "antwar-helpers" : " 0.8.1-alpha.fb334255 " ,
41
- "antwar-interactive" : " 0.8.1-alpha.fb334255 " ,
42
- "antwar-prevnext-plugin" : " 0.8.1-alpha.fb334255 " ,
39
+ "antwar" : " 0.8.1-alpha.95152042 " ,
40
+ "antwar-helpers" : " 0.8.1-alpha.95152042 " ,
41
+ "antwar-interactive" : " 0.8.1-alpha.95152042 " ,
42
+ "antwar-prevnext-plugin" : " 0.8.1-alpha.95152042 " ,
43
43
"autoprefixer" : " ^6.3.7" ,
44
44
"babel-core" : " ^6.10.4" ,
45
45
"babel-eslint" : " ^6.1.2" ,
You can’t perform that action at this time.
0 commit comments