File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 7
7
"test" : " jest" ,
8
8
"watch" : " webpack --watch" ,
9
9
"build" : " webpack --mode production" ,
10
- "start" : " webpack-dev-server --open"
10
+ "start" : " webpack-dev-server --open" ,
11
+ "predeploy" : " npm run build" ,
12
+ "deploy" : " gh-pages -d dist"
11
13
},
12
14
"author" : " zrpnr" ,
15
+ "homepage" : " https://zrpnr.github.io/jsonapi_explorer" ,
13
16
"license" : " GPL-2.0" ,
14
17
"dependencies" : {
15
18
"@babel/runtime" : " ^7.4.5" ,
16
19
"codemirror" : " ^5.47.0" ,
17
20
"dotenv-webpack" : " ^1.7.0" ,
21
+ "gh-pages" : " ^2.0.1" ,
18
22
"json-schema-ref-parser" : " ^6.1.0" ,
19
23
"react" : " ^16.8.6" ,
20
24
"react-dom" : " ^16.8.6"
28
32
"autoprefixer" : " ^9.6.0" ,
29
33
"babel-loader" : " ^8.0.6" ,
30
34
"css-loader" : " ^3.0.0" ,
35
+ "html-loader" : " ^0.5.5" ,
31
36
"jest" : " ^24.8.0" ,
32
37
"mini-css-extract-plugin" : " ^0.7.0" ,
33
38
"node-sass" : " ^4.12.0" ,
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import { render } from 'react-dom' ;
3
+ import html from '../index.html' ;
3
4
import css from './css/main.scss' ;
4
5
5
6
import App from './app' ;
Original file line number Diff line number Diff line change @@ -61,6 +61,15 @@ module.exports = {
61
61
loader : 'svg-url-loader' ,
62
62
options : { }
63
63
}
64
+ } ,
65
+ {
66
+ test : / \. ( h t m l ) $ / ,
67
+ use : {
68
+ loader : 'file-loader' ,
69
+ options : {
70
+ name : '[name].[ext]'
71
+ }
72
+ }
64
73
}
65
74
] ,
66
75
} ,
You can’t perform that action at this time.
0 commit comments