1.0.0 • Published 8 years ago

feather-postprocessor-inline-compress v1.0.0

Weekly downloads
16
License
-
Repository
github
Last release
8 years ago

feather-postprocessor-inline-compress

#简介

feather-postprocessor-inline-compress是feather中的一个内联样式以及js进行压缩的插件,它可同样作为fis的插件进行使用。

#使用

feather开发环境中以集成该插件,不需要feather_conf.js的配置

使用非feather的开发环境时使用:

npm install feather-postprocessor-inline-compress

fis-conf.js

fis.config.get('modules.postprocessor').push(require('feather-postprocessor-inline-compress'));

index.html

<script feather-inline-compress>
(function(window){
console.log(123);
})(window);
</script>

<style type="text/css" feather-inline-compress>
div{
  font-size: 12px;
  font-weight: bold;
}
</style>