angular-docs-cn/aio/content/examples/webpack/config/helpers.js

12 lines
254 B
JavaScript
Raw Normal View History

// #docregion
var path = require('path');
var _root = path.resolve(__dirname, '..');
function root(args) {
args = Array.prototype.slice.call(arguments, 0);
return path.join.apply(path, [_root].concat(args));
}
exports.root = root;
// #enddocregion