mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01: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",
|
||||
"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: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:heroku": "UNLEASH_API=http://unleash.herokuapp.com npm run start",
|
||||
"lint": "eslint . --ext js,jsx",
|
||||
|
@ -6,16 +6,13 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="unleash">
|
||||
|
||||
<title>Unleash</title>
|
||||
<link rel="stylesheet" href="bundle.css">
|
||||
<title>Unleash UI</title>
|
||||
<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/css?family=Roboto:300,400,500,700" rel="stylesheet">
|
||||
|
||||
<link rel="stylesheet" href="">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id='app'></div>
|
||||
<script src="bundle.js"></script>
|
||||
<script src="public/bundle.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -30,7 +30,7 @@ module.exports = {
|
||||
},
|
||||
|
||||
output: {
|
||||
path: path.join(__dirname, 'dist'),
|
||||
path: path.join(__dirname, 'dist/public'),
|
||||
filename: 'bundle.js',
|
||||
publicPath: '/static/',
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user