Skip to content

AngularJS webpack loader that inlines your templates into angular directives and components.

License

Notifications You must be signed in to change notification settings

maksim-tolo/angular-template-url-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-template-url-loader

AngularJS webpack loader that inlines your templates into angular directives and components.

Quick Links

Installation

npm install angular-template-url-loader --save-dev

Usage

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.js$/,
        use: [ 'angular-template-url-loader' ]
      },
      {
        test: /\.html$/, 
        use: [ 'raw-loader' ]
      }
    ]
  }
}

Options

Name Default Description
basePath '' Path to resolve URLs

Requirements

To be able to use the template loader you must have a loader registered, which can handle .html files (for example raw-loader or html-loader).

About

AngularJS webpack loader that inlines your templates into angular directives and components.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •