webpack.dev.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Password Management Servlets (PWM)
  3. * http://www.pwm-project.org
  4. *
  5. * Copyright (c) 2006-2009 Novell, Inc.
  6. * Copyright (c) 2009-2018 The PWM Project
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  21. */
  22. var commonConfig = require('./webpack.common.js');
  23. var CopyWebpackPlugin = require('copy-webpack-plugin');
  24. var webpackMerge = require('webpack-merge');
  25. module.exports = webpackMerge(commonConfig, {
  26. devtool: 'cheap-module-source-map',
  27. entry: {
  28. 'peoplesearch.ng': './src/modules/peoplesearch/main.dev',
  29. 'changepassword.ng': './src/modules/changepassword/changepassword.module',
  30. 'configeditor.ng': './src/modules/configeditor/configeditor.module',
  31. 'helpdesk.ng': './src/modules/helpdesk/main.dev'
  32. },
  33. plugins: [
  34. // Don't forget to add this to karma.conf.js
  35. new CopyWebpackPlugin([
  36. { from: 'node_modules/@uirouter/angularjs/release/angular-ui-router.js', to: 'vendor/' },
  37. { from: 'node_modules/angular/angular.js', to: 'vendor/' },
  38. { from: 'node_modules/angular-aria/angular-aria.js', to: 'vendor/' },
  39. { from: 'node_modules/angular-translate/dist/angular-translate.js', to: 'vendor/' },
  40. { from: 'node_modules/@microfocus/ux-ias/dist/ux-ias.css', to: 'vendor/' },
  41. { from: 'node_modules/@microfocus/ng-ias/dist/ng-ias.js', to: 'vendor/' },
  42. { from: 'node_modules/@microfocus/ias-icons/dist/ias-icons.css', to: 'vendor/' },
  43. { from: 'node_modules/@microfocus/ias-icons/dist/fonts', to: 'vendor/fonts' }
  44. ])
  45. ]
  46. });