Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Jun 23, 2017
1 parent ecaf9e5 commit 8ede16b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/lib/asset-manager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ function init (options, directory, app) {
app.locals.nUiConfig = Object.assign({}, require(path.join(directory, 'client/n-ui-config')), {preload: true})
} catch (e) {}

// initialise logic to calculate paths to assets
// initialise helper for calculating paths to assets
Object.assign(refs, assetPathManager(app.locals, directory, refs.useLocalAppShell))

//expose the asset hashing helper to apps (in case they buidl non-standard files)
app.getHashedAssetUrl = refs.assetHasher;
//expose the asset hashing helper to apps (in case they build non-standard files)
app.getHashedAssetUrl = refs.getAssetPath;

// use all the above in middleware to be used on each request
app.use(middlewareFactory(refs));
Expand Down

0 comments on commit 8ede16b

Please sign in to comment.