summaryrefslogtreecommitdiff
path: root/web-ui/webpack.config.js
diff options
context:
space:
mode:
authorAnike Arni <aarni@thoughtworks.com>2016-12-28 11:08:00 -0200
committerAnike Arni <aarni@thoughtworks.com>2016-12-28 11:08:00 -0200
commit98de4c106a59b4c635ea9984d5f729c04413c71a (patch)
tree1c1a565293886bef604ea0299f0efbd110ea913a /web-ui/webpack.config.js
parent42306527afd087373df57306c090698d99e0db4b (diff)
Copy all necessary assest to dist folder to package, via webpack
Diffstat (limited to 'web-ui/webpack.config.js')
-rw-r--r--web-ui/webpack.config.js23
1 files changed, 21 insertions, 2 deletions
diff --git a/web-ui/webpack.config.js b/web-ui/webpack.config.js
index fb85bd16..e03f453a 100644
--- a/web-ui/webpack.config.js
+++ b/web-ui/webpack.config.js
@@ -1,4 +1,5 @@
-var path = require('path')
+var path = require('path');
+var CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
entry: './app/js/index.js',
@@ -44,5 +45,23 @@ module.exports = {
query: { presets: ['es2015']}
}
]
- }
+ },
+ plugins: [
+ new CopyWebpackPlugin([
+ { context: 'app/', from: '404.html', to: '../' },
+ { context: 'app/', from: 'fonts/*', to: '../' },
+ { context: 'app/', from: 'locales/**/*', to: '../' },
+ { context: 'app/', from: 'bower_components/font-awesome/fonts/*', to: '../' },
+ {
+ context: 'app/',
+ from: 'bower_components/font-awesome/css/font-awesome.min.css',
+ to: '../bower_components/font-awesome/css'
+ },
+ {
+ context: 'app/',
+ from: 'bower_components/jquery-file-upload/css/jquery.fileupload.css',
+ to: '../bower_components/jquery-file-upload/css'
+ }
+ ])
+ ]
}