diff options
author | Anike Arni <aarni@thoughtworks.com> | 2016-12-29 10:26:06 -0200 |
---|---|---|
committer | Anike Arni <aarni@thoughtworks.com> | 2016-12-29 10:26:06 -0200 |
commit | 7c847f5abd4a516236a74862eb7ec222087900be (patch) | |
tree | f13935d5b18e6b2bf799bb108447f2bb92b844ab /web-ui | |
parent | d67a32e951c6116adc3ad14d31f26a6459333648 (diff) |
Makes sure builds include all necessary files
Diffstat (limited to 'web-ui')
-rw-r--r-- | web-ui/webpack.config.js | 82 | ||||
-rw-r--r-- | web-ui/webpack.production.config.js | 4 |
2 files changed, 83 insertions, 3 deletions
diff --git a/web-ui/webpack.config.js b/web-ui/webpack.config.js index a79d98be..ca795ea5 100644 --- a/web-ui/webpack.config.js +++ b/web-ui/webpack.config.js @@ -48,5 +48,85 @@ module.exports = { query: { presets: ['es2015']} } ] - } + }, + plugins: [ + 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/*' }, + { + 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' + }, + { + context: 'app/', + from: 'bower_components/modernizr/modernizr.js', + to: 'bower_components/modernizr' + }, + { + context: 'app/', + from: 'bower_components/lodash/dist/lodash.min.js', + to: 'bower_components/lodash/dist' + }, + { + context: 'app/', + from: 'bower_components/jquery/dist/jquery.min.js', + to: 'bower_components/jquery/dist' + }, + { + context: 'app/', + from: 'bower_components/jquery-ui/jquery-ui.min.js', + to: 'bower_components/jquery-ui' + }, + { + context: 'app/', + from: 'bower_components/jquery-file-upload/js/jquery.fileupload.js', + to: 'bower_components/jquery-file-upload/js' + }, + { + context: 'app/', + from: 'bower_components/handlebars/handlebars.min.js', + to: 'bower_components/handlebars' + }, + { + context: 'app/', + from: 'bower_components/typeahead.js/dist/typeahead.bundle.min.js', + to: 'bower_components/typeahead.js/dist' + }, + { + context: 'app/', + from: 'bower_components/iframe-resizer/js/iframeResizer.min.js', + to: 'bower_components/iframe-resizer/js' + }, + { + context: 'app/', + from: 'bower_components/foundation/js/foundation.js', + to: 'bower_components/foundation/js' + }, + { + context: 'app/', + from: 'bower_components/foundation/js/foundation/foundation.reveal.js', + to: 'bower_components/foundation/js/foundation' + }, + { + context: 'app/', + from: 'bower_components/foundation/js/foundation/foundation.offcanvas.js', + to: 'bower_components/foundation/js/foundation' + }, + { + context: 'app/', + from: 'js/foundation/initialize_foundation.js', + to: 'js/foundation' + } + ]) + ] } diff --git a/web-ui/webpack.production.config.js b/web-ui/webpack.production.config.js index 79884ad7..77ff1fb9 100644 --- a/web-ui/webpack.production.config.js +++ b/web-ui/webpack.production.config.js @@ -115,12 +115,12 @@ module.exports = { { context: 'app/', from: 'bower_components/foundation/js/foundation/foundation.reveal.js', - to: 'bower_components/foundation/js' + to: 'bower_components/foundation/js/foundation' }, { context: 'app/', from: 'bower_components/foundation/js/foundation/foundation.offcanvas.js', - to: 'bower_components/foundation/js' + to: 'bower_components/foundation/js/foundation' }, { context: 'app/', |