
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@angularclass/resolve-angular-routes
Advanced tools
Resolve Angular 2 Routes for Webpack Context creation
Resolve Angular 2 Routes for Context
npm install --save-dev @angularclass/resolve-angular-routes
src/
├──about/
| └──index.ts // NgModule or Component with either
|
└──index.ts // routes
// the router resolve will look for these static properties
// 'routes', 'ROUTER_CONFIG', or 'ROUTE_CONFIG'
// ngRoutes from index.ts
[
{ path: 'about', component: './about' }
]
// context map created
{
'./about': './app/about'
}
import 'core-js/es6';
import 'core-js/es7/reflect';
const resolveNgRoute = require('@angularclass/resolve-angular-routes');
module.exports = {
// etc
plugins: [
new ContextReplacementPlugin(
/angular\/core\/src\/linker/,
root('./src'), // root() __dirname helper
resolveNgRoute(root('./src'))
),
]
// etc
}
enjoy — AngularClass
Learn AngularJS, Angular 2, and Modern Web Development from the best. Looking for corporate Angular training, want to host us, or Angular consulting? patrick@angularclass.com
Apache-2.0
FAQs
Resolve Angular 2 Routes for Webpack Context creation
The npm package @angularclass/resolve-angular-routes receives a total of 28 weekly downloads. As such, @angularclass/resolve-angular-routes popularity was classified as not popular.
We found that @angularclass/resolve-angular-routes demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.