Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

noflo browser app example with angular-cli #79

Open
chumtoadafuq opened this issue Jul 30, 2020 · 1 comment
Open

noflo browser app example with angular-cli #79

chumtoadafuq opened this issue Jul 30, 2020 · 1 comment

Comments

@chumtoadafuq
Copy link

chumtoadafuq commented Jul 30, 2020

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?

@Mijago
Copy link

Mijago commented Apr 13, 2021

A very late bump. Would be very interesting to see this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants