webpack.prod.js 499 B

123456789101112131415161718192021
  1. /**
  2. * Licensed Materials - Property of IBM
  3. * IBM Cognos Products: BI (C) Copyright IBM Corp. 2019
  4. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  5. */
  6. const merge = require('webpack-merge');
  7. const common = require('./webpack.common.js');
  8. module.exports = merge(common, {
  9. mode: 'production',
  10. module: {
  11. rules: [
  12. {
  13. test: /(\.tsx|\.ts)$/,
  14. loader: 'ts-loader',
  15. exclude: [ /node_modules/ ]
  16. }
  17. ]
  18. }
  19. });