mirror of
https://github.com/tl-open-source/tl-rtc-file.git
synced 2025-10-10 01:40:20 +08:00
tl-rtc-file
This commit is contained in:
16
build/webpack/comm/path.js
Normal file
16
build/webpack/comm/path.js
Normal file
@@ -0,0 +1,16 @@
|
||||
const path = require("path");
|
||||
|
||||
function getBasePath(dir){
|
||||
return path.resolve(process.cwd(),dir);
|
||||
}
|
||||
|
||||
const ROOT_PATH = getBasePath('./../../res');
|
||||
const JS_PATH = getBasePath('./../../res/js');
|
||||
const CSS_PATH = getBasePath('./../../res/css');
|
||||
|
||||
|
||||
module.exports = {
|
||||
ROOT_PATH,
|
||||
JS_PATH,
|
||||
CSS_PATH
|
||||
};
|
Reference in New Issue
Block a user