const CopyWebpackPlugin = require('copy-webpack-plugin');

module.exports = {
    outputDir: '../static',
    baseUrl: '/static/',
    pages: {
        index: {
            entry: 'src/main.ts',
            template: 'public/index.html',
            filename: 'index.html'
        },
        admin: {
            entry: 'src/admin.ts',
            template: 'public/admin.html',
            filename: 'admin.html',
        }
    },
    
    configureWebpack: {
        // plugins: [
        //     new CopyWebpackPlugin([{from: 'src/admin'}], {}),
        // ],
        devServer: {
            proxy: {
                '/vehicles|/routes|/adminMessage|/updates|/stops': {
                    target: 'https://shuttles.rpi.edu',
                    changeOrigin: true,
                    cookieDomainRewrite: '',
                },
            }
        }
    }
};
@@ -846,20 +846,108 @@
 %7D%0A        %7D%0A
+    %7D,%0A    chainWebpack: config =%3E %7B%0A        config.optimization.delete('splitChunks');%0A
     %7D%0A%7D;

Disable code splitting plugin, Fix public facing fonts (#196)