2021-12-06 22:15:26 +01:00
|
|
|
config.resolve.modules.push("../../processedResources/js/main");
|
|
|
|
|
|
|
|
|
|
if (config.devServer) {
|
2022-06-19 10:16:37 +02:00
|
|
|
config.devServer.hot = true;
|
|
|
|
|
config.devtool = 'eval-cheap-source-map';
|
|
|
|
|
config.devServer.host = "0.0.0.0"
|
2021-12-06 22:15:26 +01:00
|
|
|
} else {
|
2022-06-19 10:16:37 +02:00
|
|
|
config.devtool = undefined;
|
2021-12-06 22:15:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// disable bundle size warning
|
|
|
|
|
config.performance = {
|
2022-06-19 10:16:37 +02:00
|
|
|
assetFilter: function (assetFilename) {
|
|
|
|
|
return !assetFilename.endsWith('.js');
|
|
|
|
|
},
|
2021-12-06 22:15:26 +01:00
|
|
|
};
|
2022-06-19 10:16:37 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// // dev server
|
|
|
|
|
// config.devServer = {
|
|
|
|
|
// open: false,
|
|
|
|
|
// // devMiddleware: {
|
|
|
|
|
// // index: false, // specify to enable root proxying
|
|
|
|
|
// // },
|
|
|
|
|
// port: 3000,
|
|
|
|
|
// proxy: {
|
|
|
|
|
// // context: () => true,
|
|
|
|
|
// // target: "http://localhost:12080",
|
|
|
|
|
// // secure: false,
|
|
|
|
|
// // ws: true,
|
|
|
|
|
// // changeOrigin: true,
|
|
|
|
|
//
|
|
|
|
|
// // "/tiles": {
|
|
|
|
|
// // target: "http://localhost:12080",
|
|
|
|
|
// // // "pathRewrite": { "^/tiles": "" },
|
|
|
|
|
// // // "logger": "console",
|
|
|
|
|
// // // "logLevel": "debug",
|
|
|
|
|
// // secure: false,
|
|
|
|
|
// // changeOrigin: true,
|
|
|
|
|
// // },
|
|
|
|
|
// // "/ws": {
|
|
|
|
|
// // target: "http://localhost:12080",
|
|
|
|
|
// // // pathRewrite: { "^/ws": "" },
|
|
|
|
|
// // // "logLevel": "debug",
|
|
|
|
|
// // // "logger": "console",
|
|
|
|
|
// // secure: false,
|
|
|
|
|
// // ws: true,
|
|
|
|
|
// // changeOrigin: true,
|
|
|
|
|
// // },
|
|
|
|
|
// },
|
|
|
|
|
// "static": [
|
|
|
|
|
// // "../../processedResources/js/main",
|
|
|
|
|
// "D:\\Users\\Adam\\Projects\\games\\kafkatorio\\modules\\web-map\\build\\processedResources\\frontend\\main",
|
|
|
|
|
// ],
|
|
|
|
|
// };
|