From 98de4c106a59b4c635ea9984d5f729c04413c71a Mon Sep 17 00:00:00 2001 From: Anike Arni Date: Wed, 28 Dec 2016 11:08:00 -0200 Subject: Copy all necessary assest to dist folder to package, via webpack --- web-ui/webpack.config.js | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'web-ui/webpack.config.js') 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' + } + ]) + ] } -- cgit v1.2.3