0.3.0 • Published 10 months ago

vite-plugin-angular-template-cache v0.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Vite Plugin AngularJS Template Cache

This Vite plugin generates AngularJS $templateCache from HTML files and injects it into your AngularJS application.

Installation

npm install vite-plugin-angular-template-cache --save-dev

In your vite.config.js:

import angularTemplateCachePlugin from 'vite-plugin-angular-template-cache';

export default {
  plugins: [
    angularTemplateCachePlugin({
      htmlDir: 'src',  // Directory containing HTML files
      root: process.cwd(), // [OPTIONAL] The root directory of your project
      appModule: 'myApp', //  [OPTIONAL] the name of the Angular module
      entry: 'src/main.js' // [OPTIONAL] Entry file with Angular module declaration to get the module name, if appModule is not specified.
    })
  ]
};
0.3.0

10 months ago

0.2.0

10 months ago

0.1.0

10 months ago