Update dependencies and improve build system
This commit is contained in:
9
service/utils/paths.js
Normal file
9
service/utils/paths.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict'
|
||||
|
||||
const path = require('path')
|
||||
|
||||
// gen static file path
|
||||
exports.getAssetPath = (...args) => path.posix.join('static', ...args)
|
||||
|
||||
// gen absolute path
|
||||
exports.resolve = (...args) => path.posix.join(process.cwd(), ...args)
|
||||
Reference in New Issue
Block a user