utils.js 255 B

1234567891011
  1. const path = require('path');
  2. const config = require('./config');
  3. exports.assetsPath = function (_path) {
  4. return path.posix.join(config.assetsSubDirectory, _path);
  5. };
  6. exports.resolve = function (dir) {
  7. return path.join(__dirname, './../', dir);
  8. };