Skip to content

noflo browser app example with angular-cli #79

@chumtoadafuq

Description

@chumtoadafuq

Could you provide an example of how to hookup noflo for use as part of a project built with angular-cli (https://cli.angular.io/).

There is only one stackoverflow post on this topic and the answer is out of date and incomplete.

I'm using angular-cli v10 and have hooked up a custom webpack config (https://github.com/just-jeb/angular-builders/tree/master/packages/custom-webpack) together with the loader...

module.exports = {
  module: {
    rules: [
      {
        // Replace NoFlo's dynamic loader with a generated one
        test: /noflo\/lib\/loader\/register.js$/,
        use:
          [
            {
              loader: 'noflo-component-loader',
              options: {
                // Only include components used by this graph
                // Set to NULL if you want all installed components
                graph: null,
                // Whether to include the original component sources
                // in the build
                debug: false,
              },
            }
          ]
      }
    ]
  }
}

But I need a full example of how to hookup noflo in this type of project...

Can you help me out?

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