Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maksim-tolo/angular-template-url-loader
AngularJS webpack loader that inlines your templates into angular directives and components.
https://github.com/maksim-tolo/angular-template-url-loader
angularjs webpack webpack-loader
Last synced: about 1 month ago
JSON representation
AngularJS webpack loader that inlines your templates into angular directives and components.
- Host: GitHub
- URL: https://github.com/maksim-tolo/angular-template-url-loader
- Owner: maksim-tolo
- License: mit
- Created: 2017-01-30T11:43:05.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-05T13:20:50.000Z (about 6 years ago)
- Last Synced: 2024-09-30T12:02:48.580Z (about 2 months ago)
- Topics: angularjs, webpack, webpack-loader
- Language: JavaScript
- Size: 5.86 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# angular-template-url-loader
AngularJS webpack loader that inlines your templates into angular directives and components.### Quick Links
- [Installation](#installation)
- [Usage](#usage)
- [Options](#options)
- [Requirements](#requirements)### Installation
```bash
npm install angular-template-url-loader --save-dev
```### Usage
**webpack.config.js**
```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`](https://github.com/webpack/raw-loader) or [`html-loader`](https://github.com/webpack-contrib/html-loader)).