utils.js 273 B

1234567891011121314
  1. 'use strict'
  2. const path = require('path')
  3. module.exports = {
  4. resolve: function (dir) {
  5. return path.join(__dirname, '..', dir)
  6. },
  7. assetsPath: function (_path) {
  8. const assetsSubDirectory = 'static'
  9. return path.posix.join(assetsSubDirectory, _path)
  10. }
  11. }