ncl

nodeart-components-loader

Angular 2 webpack loader that convert templates and styles paths in components if there are custom templates.

Showing:

Popularity

Downloads/wk

2

Maintenance

No Maintenance Data Available

Package

Dependencies

1

Size (min+gzip)

15.4KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Nodeart-Components-Loader

Angular 2 webpack loader that convert templates and styles paths in components if there are custom templates.

Tutorial

  1. In your webpack config file add path to custom templates and style folders. For getting path to project's root use app-root-path Example:
let appRoot = require('app-root-path');
let path = require('path');
let templatesPath = path.join(appRoot + '/src/@nodeart/templates');
let stylesPath =  path.join(appRoot + '/src/@nodeart/styles');
  1. Install nodeart-components-loader from npm:
npm install --save nodeart-components-loader
  1. Add loader to webpack config file
test: /\.ts$/,
loaders: [
    'nodeart-loader?templatesPath=' + templatesPath + '&stylesPath=' + stylesPath
    ]
  1. Create custom html template in your templates folder with the same origin template. Loader will change path.
  2. Finish

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial