mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-03 14:38:50 +00:00
Merge branch 'refactor' into main
This commit is contained in:
commit
2ea78f1b1b
58 files changed
+14613
-521
No files matched your search
@@ -0,0 +1,24 @@
|
||||
const path = require('path');
|
||||
module.exports = {
|
||||
webpack: {
|
||||
configure: (webpackConfig) => {
|
||||
// Because CEF has issues with loading source maps properly atm,
|
||||
// lets use the best we can get in line with `eval-source-map`
|
||||
if (webpackConfig.mode === 'development' && process.env.IN_GAME_DEV) {
|
||||
webpackConfig.devtool = 'eval-source-map';
|
||||
webpackConfig.output.path = path.join(__dirname, 'build');
|
||||
}
|
||||
|
||||
return webpackConfig;
|
||||
},
|
||||
},
|
||||
|
||||
devServer: (devServerConfig) => {
|
||||
if (process.env.IN_GAME_DEV) {
|
||||
// Used for in-game dev mode
|
||||
devServerConfig.devMiddleware.writeToDisk = true;
|
||||
}
|
||||
|
||||
return devServerConfig;
|
||||
},
|
||||
};
|
||||
Reference in new issue
Block a user