summaryrefslogtreecommitdiff
path: root/web-ui
diff options
context:
space:
mode:
authorAnike Arni <aarni@thoughtworks.com>2016-12-29 09:44:31 -0200
committerAnike Arni <aarni@thoughtworks.com>2016-12-29 09:44:31 -0200
commitd67a32e951c6116adc3ad14d31f26a6459333648 (patch)
tree8d07e8988196d482c16514809d3be4311e8c82ed /web-ui
parent86e464682533e6d21f7f5c69dc091532df4c6dbc (diff)
Use only dist folder for serving application
Diffstat (limited to 'web-ui')
-rw-r--r--web-ui/webpack.config.js2
-rw-r--r--web-ui/webpack.production.config.js1
2 files changed, 2 insertions, 1 deletions
diff --git a/web-ui/webpack.config.js b/web-ui/webpack.config.js
index eb64aab8..a79d98be 100644
--- a/web-ui/webpack.config.js
+++ b/web-ui/webpack.config.js
@@ -6,7 +6,7 @@ module.exports = {
entry: './app/js/index.js',
node: { fs: 'empty' },
output: {
- path: path.join(__dirname, '/app/'),
+ path: path.join(__dirname, 'dist'),
filename: 'app.min.js',
publicPath: '/assets/'
},
diff --git a/web-ui/webpack.production.config.js b/web-ui/webpack.production.config.js
index b8531080..79884ad7 100644
--- a/web-ui/webpack.production.config.js
+++ b/web-ui/webpack.production.config.js
@@ -53,6 +53,7 @@ module.exports = {
new CopyWebpackPlugin([
{ context: 'app/', from: '404.html' },
{ context: 'app/', from: 'index.html' },
+ { context: 'app/', from: 'css/*' },
{ context: 'app/', from: 'fonts/*' },
{ context: 'app/', from: 'locales/**/*' },
{ context: 'app/', from: 'bower_components/font-awesome/fonts/*' },