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.

Explicitly define list of assets #97

@benoitguigal

Description

@benoitguigal

I am using express to build a single page application with React.js and I am using inline html to send my app to the client:

app.get('*', function(req, res) {
  res.send(
        `
        <!doctype html>
            <head>
                <link rel="stylesheet" type="text/css" href="${CDN('stylesheets/foo.min.css')}">
                <title>Figure</title>
            </head>
                <div id="root"></div>
                <script src='${CDN('/javascripts/bundle.js')}'></script>
            </body>
        </html>
        `
  )
})

I would like to be able to explicitly define my list of assets, [./statics/stylesheets/foo.min.css, ./statics/javascripts/bundle.js] rather than walking though views and extracting assets in the walk function.

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