diff --git a/frontend/package.json b/frontend/package.json index d914dbbf04..ca8a95d0ac 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -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", diff --git a/frontend/public/index.html b/frontend/public/index.html index f492693a77..5ccefda223 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -6,16 +6,13 @@ - Unleash - + Unleash UI + - - -
- + \ No newline at end of file diff --git a/frontend/webpack.config.js b/frontend/webpack.config.js index ce4cbbaccc..ed827d0b4a 100644 --- a/frontend/webpack.config.js +++ b/frontend/webpack.config.js @@ -30,7 +30,7 @@ module.exports = { }, output: { - path: path.join(__dirname, 'dist'), + path: path.join(__dirname, 'dist/public'), filename: 'bundle.js', publicPath: '/static/', },