Skip to content

Commit

Permalink
Add legacy scripts to serve from node modules
Browse files Browse the repository at this point in the history
  • Loading branch information
hannalaakso authored and aliuk2012 committed Jun 14, 2019
1 parent 786668e commit 2e0887f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ module.exports = (options) => {
// serve html5-shiv from node modules
app.use('/vendor/html5-shiv/', express.static('node_modules/html5shiv/dist/'))

// serve legacy code from node node modules
// serve legacy code from node modules
app.use('/vendor/govuk_template/', express.static('node_modules/govuk_template_jinja/assets/'))
app.use('/vendor/govuk_frontend_toolkit/', express.static('node_modules/govuk_frontend_toolkit/javascripts/govuk/'))
app.use('/vendor/jquery/', express.static('node_modules/jquery/dist'))

app.use('/assets', express.static(path.join(configPaths.src, 'assets')))

Expand Down

0 comments on commit 2e0887f

Please sign in to comment.