diff options
author | Anike Arni <aarni@thoughtworks.com> | 2016-12-28 11:08:00 -0200 |
---|---|---|
committer | Anike Arni <aarni@thoughtworks.com> | 2016-12-28 11:08:00 -0200 |
commit | 98de4c106a59b4c635ea9984d5f729c04413c71a (patch) | |
tree | 1c1a565293886bef604ea0299f0efbd110ea913a | |
parent | 42306527afd087373df57306c090698d99e0db4b (diff) |
Copy all necessary assest to dist folder to package, via webpack
-rw-r--r-- | web-ui/webpack.config.js | 23 |
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' + } + ]) + ] } |