Ignore:
Timestamp:
Feb 6, 2021, 9:49:23 AM (6 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
af54e79
Parents:
e90dce0
git-author:
Joachim Langenbach <joachim.langenbach@…> (02/06/21 09:20:22)
git-committer:
Joachim Langenbach <joachim.langenbach@…> (02/06/21 09:49:23)
Message:

Angular 11 update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mapservice-webclient/webpack.config.js

    re90dce0 r8ba1a11  
    1010            {
    1111                test: /\.ts$/,
    12                 use: ['ts-loader', 'angular2-template-loader'],
    13                 exclude: /node_modules/
     12                use: ['angular2-template-loader'],
     13                type: 'asset',
     14                exclude: /node_modules/,
    1415            },
    1516            {
    1617                test: /\.(html|css)$/,
    17                 loader: 'raw-loader'
     18                type: 'asset',
    1819            },
    1920        ]
    … …  
    3738            })
    3839        }),
    39         new CopyPlugin([
    40           { from: 'src/css', to: 'css' },
    41           { from: '../gnuboat/common/css', to: 'css' },
    42           { from: '../gnuboat/common/js', to: 'js' },
    43           { from: '../gnuboat/common/lib', to: 'lib' },
    44           { from: '../gnuboat/common/resources', to: 'resources' },
    45           { from: '../gnuboat/common/icon/gnuboat-256-256-transparent.png', to: 'resources' },
    46           { from: '../gnuboat/common/icon/gnuboat-device.svg', to: 'resources' },
    47           { from: '../gnuboat/common/icon/gnuboat-gauge.svg', to: 'resources' },
    48           { from: '../gnuboat/common/icon/gnuboat-logfile.svg', to: 'resources' },
    49           { from: '../gnuboat/common/icon/gnuboat-water.svg', to: 'resources' },
    50         ])
     40        new CopyPlugin({
     41                patterns: [
     42                  { from: 'src/css', to: 'css' },
     43                  { from: '../gnuboat/common/css', to: 'css' },
     44                  { from: '../gnuboat/common/js', to: 'js' },
     45                  { from: '../gnuboat/common/lib', to: 'lib' },
     46                  { from: '../gnuboat/common/resources', to: 'resources' },
     47                  { from: '../gnuboat/common/icon/gnuboat-256-256-transparent.png', to: 'resources' },
     48                  { from: '../gnuboat/common/icon/gnuboat-device.svg', to: 'resources' },
     49                  { from: '../gnuboat/common/icon/gnuboat-gauge.svg', to: 'resources' },
     50                  { from: '../gnuboat/common/icon/gnuboat-logfile.svg', to: 'resources' },
     51                  { from: '../gnuboat/common/icon/gnuboat-water.svg', to: 'resources' },
     52                ]
     53        })
    5154    ],
    5255    optimization: {
    … …  
    5760    },
    5861    devServer: {
    59         historyApiFallback: true
     62        historyApiFallback: true,
     63        compress: false,
     64        port: 8081
    6065    }
    6166};
Note: See TracChangeset for help on using the changeset viewer.