This repository was archived by the owner on Mar 9, 2021. It is now read-only.
File tree 4 files changed +68
-861
lines changed
4 files changed +68
-861
lines changed Original file line number Diff line number Diff line change @@ -117,3 +117,4 @@ $RECYCLE.BIN/
117
117
# Others
118
118
data /
119
119
.next /
120
+ out /
Original file line number Diff line number Diff line change @@ -4,12 +4,6 @@ module.exports = {
4
4
webpack : ( config , { dev } ) => {
5
5
/* Enable only in Production */
6
6
if ( ! dev ) {
7
- // Preact
8
- console . log ( '> Using Preact instead of React' ) ;
9
- config . resolve . alias = {
10
- react : 'preact-compat/dist/preact-compat' ,
11
- 'react-dom' : 'preact-compat/dist/preact-compat' ,
12
- } ;
13
7
if ( ANALYZE ) {
14
8
const { BundleAnalyzerPlugin } = require ( 'webpack-bundle-analyzer' ) ;
15
9
config . plugins . push (
@@ -23,4 +17,12 @@ module.exports = {
23
17
}
24
18
return config ;
25
19
} ,
20
+ exportPathMap ( ) {
21
+ return {
22
+ '/' : { page : '/' } ,
23
+ '/events' : { page : '/events' } ,
24
+ '/learn' : { page : '/learn' } ,
25
+ '/space' : { page : '/space' } ,
26
+ } ;
27
+ } ,
26
28
} ;
Original file line number Diff line number Diff line change 10
10
"analyze" : " cross-env ANALYZE=1 next build" ,
11
11
"dev" : " cross-env NODE_ENV=development next" ,
12
12
"start" : " cross-env NODE_ENV=production next start" ,
13
- "build" : " next build"
13
+ "build" : " next build" ,
14
+ "export" : " yarn build && next export"
14
15
},
15
16
"xo" : {
16
17
"parser" : " babel-eslint" ,
63
64
"babel-eslint" : " ^7.2.3" ,
64
65
"babel-plugin-lodash" : " ^3.2.11" ,
65
66
"cross-env" : " ^5.0.2" ,
67
+ "cross-spawn" : " 5.1.0" ,
66
68
"eslint-config-prettier" : " ^2.3.0" ,
67
69
"eslint-plugin-react" : " ^7.1.0" ,
68
70
"husky" : " ^0.14.3" ,
69
71
"lint-staged" : " ^4.0.2" ,
70
- "now-travis" : " 1.0.1" ,
72
+ "normalize-url" : " 1.9.1" ,
73
+ "now" : " 8.3.10" ,
74
+ "octonode" : " 0.9.1" ,
71
75
"prettier" : " ^1.7.0" ,
76
+ "travis-after-all" : " 1.4.5" ,
77
+ "url-regex" : " 4.1.1" ,
72
78
"webpack-bundle-analyzer" : " ^2.8.3" ,
73
- "xo" : " ^0.18.2"
79
+ "xo" : " ^0.18.2" ,
80
+ "yargs" : " 9.0.1"
74
81
}
75
82
}
You can’t perform that action at this time.
0 commit comments