Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Question: What is the purpose of this plugin #2

Open
IAMtheIAM opened this issue Oct 7, 2016 · 1 comment
Open

Question: What is the purpose of this plugin #2

IAMtheIAM opened this issue Oct 7, 2016 · 1 comment

Comments

@IAMtheIAM
Copy link

I saw this being used in angular2-webpack-starter, and I'm trying to understand what the purpose and use case is for this loader? A little explanation would be nice, thanks.

@IAMtheIAM IAMtheIAM changed the title Question: What is the purpose of this loader Question: What is the purpose of this plugin Oct 7, 2016
@IAMtheIAM
Copy link
Author

Also, every time I run, it hits the error method

catch (e) {
    console.warn('ResolveNgRoutes', filePath)
  }

and file is always undefined.

My plugin

   new ContextReplacementPlugin(
      // The (\\|\/) piece accounts for path separators in *nix and Windows
      /angular(\\|\/)core(\\|\/)(esm(\\|\/)src|src)(\\|\/)linker/,
      helpers.root('./src'),
      resolveNgRoute(helpers.root('./src'))
   ),

Something wrong with it?

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

No branches or pull requests

1 participant