This package has been deprecated

Author message:

Use angular2-template-loader instead

angular-inliner-loader

1.0.0 • Public • Published

Angular inliner loader

npm version

Webpack loader that inlines template and styles in Angular components.

Installing

$ npm install angular-inliner-loader --save

Usage

Chain the angular-inliner-loader to your currently used typescript loader.

loaders: ['awesome-typescript-loader', 'angular-inliner-loader'],

Supported loader options (can be given either via query or options object):

styleSuffix:        Replace style file extensions with given suffix.
templateSuffix:     Replace template file extensions with given suffix.

Example

module: {
  loaders: [
    {
      test: /\.ts$/,
      loaders: ['awesome-typescript-loader', 'angular-inline-loader'],
      exclude: [/\.(spec|e2e)\.ts$/]
    },
    {
      test: /\.(html|css)$/,
      loader: 'raw-loader'
    }
  ]
}

To be able to use the angular-inliner-loader you must have a loader registered, which can handle the template and style files.

Readme

Keywords

none

Package Sidebar

Install

npm i angular-inliner-loader

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • zefoy