AngularJS webpack loader that inlines your templates into angular directives and components.
npm install angular-template-url-loaderbash
npm install angular-template-url-loader --save-dev
`$3
webpack.config.js
`js
module.exports = {
module: {
rules: [
{
test: /\.js$/,
use: [ 'angular-template-url-loader' ]
},
{
test: /\.html$/,
use: [ 'raw-loader' ]
}
]
}
}
`$3
|Name|Default|Description|
|:--:|:-----:|:----------|
|basePath|''|Path to resolve URLs|$3
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`).