Skip to content
This repository was archived by the owner on Mar 18, 2022. It is now read-only.
This repository was archived by the owner on Mar 18, 2022. It is now read-only.

Getting error 'CDN is not a function' in jade in production mode #88

@Nishant-Pathak

Description

@Nishant-Pathak

Hi,
Was stuck with getting error while starting nodejs server, using in jade file as:

script(src=CDN("config.js"))
script(src=CDN("js/login.js"))

<<<

configured as:

var CDN = require('express-cdn')(app, options); (options as defined properly as mention in README)
app.locals.CDN = CDN();

with expressjs version as: 4.13.3v

Please tell if you need more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions