mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-09 01:17:06 +02:00
Fix static assets inside public folder on release
This commit is contained in:
parent
54861f586c
commit
367df8ba96
@ -24,9 +24,11 @@
|
|||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run build:assets && npm run build:html",
|
"build": "rm -rf dist && mkdir -p dist/public && npm run build:assets && npm run build:html && npm run build:img && npm run build:ico",
|
||||||
"build:assets": "NODE_ENV=production webpack -p",
|
"build:assets": "NODE_ENV=production webpack -p",
|
||||||
"build:html": "cp public/*.* dist/.",
|
"build:html": "cp public/*.html dist/.",
|
||||||
|
"build:ico": "cp public/*.ico dist/.",
|
||||||
|
"build:img": "cp public/*.png dist/public/.",
|
||||||
"start": "NODE_ENV=development webpack-dev-server --config webpack.config.js --progress --colors",
|
"start": "NODE_ENV=development webpack-dev-server --config webpack.config.js --progress --colors",
|
||||||
"start:heroku": "UNLEASH_API=http://unleash.herokuapp.com npm run start",
|
"start:heroku": "UNLEASH_API=http://unleash.herokuapp.com npm run start",
|
||||||
"lint": "eslint . --ext js,jsx",
|
"lint": "eslint . --ext js,jsx",
|
||||||
|
@ -6,16 +6,13 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta name="description" content="unleash">
|
<meta name="description" content="unleash">
|
||||||
|
|
||||||
<title>Unleash</title>
|
<title>Unleash UI</title>
|
||||||
<link rel="stylesheet" href="bundle.css">
|
<link rel="stylesheet" href="public/bundle.css">
|
||||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
<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 href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
|
||||||
|
|
||||||
<link rel="stylesheet" href="">
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id='app'></div>
|
<div id='app'></div>
|
||||||
<script src="bundle.js"></script>
|
<script src="public/bundle.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -30,7 +30,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, 'dist'),
|
path: path.join(__dirname, 'dist/public'),
|
||||||
filename: 'bundle.js',
|
filename: 'bundle.js',
|
||||||
publicPath: '/static/',
|
publicPath: '/static/',
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user