mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-20 00:08:02 +01:00
build a self-contained SPA
This commit is contained in:
parent
de58139501
commit
ac35ba2f91
@ -22,7 +22,9 @@
|
|||||||
"node": "6"
|
"node": "6"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack -p",
|
"build": "npm run build:assets && npm run build:html",
|
||||||
|
"build:assets": "webpack -p",
|
||||||
|
"build:html": "cp public/index.html dist/index.html",
|
||||||
"start": "webpack-dev-server --config webpack.config.js --hot --progress --colors --port 3000",
|
"start": "webpack-dev-server --config webpack.config.js --hot --progress --colors --port 3000",
|
||||||
"start:api": "json-server --watch mock-api.json -p 3001",
|
"start:api": "json-server --watch mock-api.json -p 3001",
|
||||||
"lint": "eslint . --ext=js,jsx",
|
"lint": "eslint . --ext=js,jsx",
|
||||||
|
21
frontend/public/index.html
Normal file
21
frontend/public/index.html
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<meta name="description" content="unleash">
|
||||||
|
|
||||||
|
<title>Unleash Admin</title>
|
||||||
|
<link rel="stylesheet" href="bundle.css">
|
||||||
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="">
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id='app'></div>
|
||||||
|
<script src="bundle.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue
Block a user