16 lines
323 B
JavaScript
16 lines
323 B
JavaScript
'use strict';
|
|
|
|
const path = require('path');
|
|
|
|
const _root = path.resolve(__dirname, '..');
|
|
|
|
exports.root = function (args) {
|
|
args = Array.prototype.slice.call(arguments, 0);
|
|
|
|
return path.join.apply(path, [ _root ].concat(args));
|
|
};
|
|
|
|
exports.assetsPath = function (_path) {
|
|
return path.posix.join('assets', _path);
|
|
};
|