0.0.1 • Published 8 years ago
fis3-preprocessor-ng2-inline v0.0.1
fis3-preprocessor-ng2-inline
此插件会把@Component中的html和style内联进js中。
用法
fis.match('**.ts', {
parser: fis.plugin('typescript'),
preprocessor: fis.plugin('ng2-inline'),
rExt: '.js'
})
效果
cmp.component.ts 预处理前
Component({
templateUrl: 'xxx',
styleUrls: ['xxx']
})
处理后
Component({
template: __inline('xxx'),
styles: [__inline('xxx')]
})
0.0.1
8 years ago