-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpaths.js
More file actions
36 lines (31 loc) · 922 Bytes
/
paths.js
File metadata and controls
36 lines (31 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
const path = require('path');
const projectPath = path.resolve(__dirname);
const staticPath = path.resolve(projectPath, 'static');
const buildPath = path.resolve(staticPath, 'build');
const srcPath = path.resolve(projectPath, 'src');
const indexPath = path.resolve(srcPath, 'index.tsx');
const imagesPath = path.resolve(buildPath, 'images');
const nodeModulesPath = path.resolve(projectPath, 'node_modules');
const indexViewPath = path.resolve(staticPath, 'index.html');
const webpackResolve = path.resolve(
projectPath,
'webpack.resolve.config.js',
);
const aliases = {
assets: path.resolve(srcPath, 'assets/'),
styles: path.resolve(srcPath, 'styles/'),
utils: path.resolve(srcPath, 'utils/'),
views: path.resolve(srcPath, 'views/'),
};
module.exports = {
staticPath,
buildPath,
srcPath,
indexPath,
nodeModulesPath,
projectPath,
imagesPath,
indexViewPath,
aliases,
webpackResolve,
};