Webpack setup & required node packages.

This commit is contained in:
2021-01-03 16:33:51 +01:00
parent ba041d4fe2
commit 0df5a2df67
8 changed files with 291 additions and 0 deletions

18
config/helpers.js Normal file
View 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;