Webpack setup & required node packages.
This commit is contained in:
18
config/helpers.js
Normal file
18
config/helpers.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const path = require('path');
|
||||
|
||||
const _root = path.resolve(__dirname, '..');
|
||||
|
||||
class Helpers {
|
||||
};
|
||||
|
||||
Helpers.root = function(args) {
|
||||
args = Array.prototype.slice.call(arguments, 0);
|
||||
|
||||
return path.join.apply(path, [_root].concat(args));
|
||||
};
|
||||
|
||||
Helpers.assetsPath = function(_path) {
|
||||
return path.posix.join('public/assets', _path);
|
||||
};
|
||||
|
||||
module.exports = Helpers;
|
||||
Reference in New Issue
Block a user