Skip to content

playsignage/rollup-plugin-ng-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rollup-plugin-ng-template

angular1 rollup 引入模板

使用

 yarn add rollup-plugin-ng-template -D

demo

import html from 'rollup-plugin-ng-template'

export default {
  entry: 'src/index.js',
  dest: 'dist/index.js',
  plugins: [
    html()
  ]
}

Options

  {
    include: '**/*.html',
    exclude: '',
    // ng模块 默认是 ng  其他的 请先声明
    module: 'xx.tpl'
  }

最后ng1 已经是过去式了, 如果可以升级 到ng2 或者换到 vue2

About

angular1 rollup 引入html 模板

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%