paths.js 572 B

1234567891011121314151617181920
  1. const {resolve} = require('path');
  2. const {realpathSync} = require('fs');
  3. const appDirection = realpathSync(process.cwd());
  4. function resolvePath(url) {
  5. return resolve(appDirection, url);
  6. }
  7. module.exports = {
  8. outputPath: resolvePath('../../lidao-wms'),
  9. srcPath: resolvePath('src'),
  10. nodeModulesPath: resolvePath('node_modules'),
  11. publicPath: resolvePath('public'),
  12. appPath: resolvePath('.'),
  13. pkgPath: resolvePath('package.json'),
  14. assetsPublicPath: '/',
  15. indexHtmlPath: resolvePath('public/index.html'),
  16. appDirection,
  17. rootPath: resolvePath('../../'),
  18. };