mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-26 08:58:06 +00:00
add webpack/constants to git
This commit is contained in:
parent
7f24c6fd55
commit
2c84d69eab
3
.gitignore
vendored
3
.gitignore
vendored
@ -17,7 +17,4 @@ logs
|
|||||||
*.log
|
*.log
|
||||||
.yarnclean
|
.yarnclean
|
||||||
|
|
||||||
# Local config file
|
|
||||||
webpack/constants.js
|
|
||||||
|
|
||||||
_old
|
_old
|
21
webpack/constants.js
Normal file
21
webpack/constants.js
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/* @flow */
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
import path from 'path';
|
||||||
|
|
||||||
|
export const ABSOLUTE_BASE: string = path.normalize(path.join(__dirname, '..'));
|
||||||
|
|
||||||
|
const constants: Object = Object.freeze({
|
||||||
|
BUILD: path.join(ABSOLUTE_BASE, 'build/'),
|
||||||
|
SRC: path.join(ABSOLUTE_BASE, 'src/'),
|
||||||
|
PORT: 8081,
|
||||||
|
INDEX: path.join(ABSOLUTE_BASE, 'src/index.html'),
|
||||||
|
TREZOR_CONNECT_ROOT: path.join(ABSOLUTE_BASE, '../trezor.js2/')
|
||||||
|
});
|
||||||
|
|
||||||
|
export const BUILD: string = constants.BUILD;
|
||||||
|
export const SRC: string = constants.SRC;
|
||||||
|
export const PORT: string = constants.PORT;
|
||||||
|
export const INDEX: string = constants.INDEX;
|
||||||
|
|
||||||
|
export default constants;
|
Loading…
Reference in New Issue
Block a user