Created
October 30, 2022 01:37
-
-
Save alielmajdaoui/7e9b15d1d1e022660ee816c09d628cb5 to your computer and use it in GitHub Desktop.
./erb/configs/webpack.paths.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
const rootPath = path.join(__dirname, '../..'); | |
const dllPath = path.join(__dirname, '../dll'); | |
const srcPath = path.join(rootPath, 'src'); | |
const srcMainPath = path.join(srcPath, 'main'); | |
const srcRendererPath = path.join(srcPath, 'renderer'); | |
const srcSettingsMainPath = path.join(srcPath, 'settings-main'); | |
const srcSettingsRendererPath = path.join(srcPath, 'settings-renderer'); | |
const releasePath = path.join(rootPath, 'release'); | |
const appPath = path.join(releasePath, 'app'); | |
const appPackagePath = path.join(appPath, 'package.json'); | |
const appNodeModulesPath = path.join(appPath, 'node_modules'); | |
const srcNodeModulesPath = path.join(srcPath, 'node_modules'); | |
const distPath = path.join(appPath, 'dist'); | |
const distMainPath = path.join(distPath, 'main'); | |
const distRendererPath = path.join(distPath, 'renderer'); | |
const buildPath = path.join(releasePath, 'build'); | |
export default { | |
rootPath, | |
dllPath, | |
srcPath, | |
srcMainPath, | |
srcRendererPath, | |
srcSettingsMainPath, | |
srcSettingsRendererPath, | |
releasePath, | |
appPath, | |
appPackagePath, | |
appNodeModulesPath, | |
srcNodeModulesPath, | |
distPath, | |
distMainPath, | |
distRendererPath, | |
buildPath, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment