1.0.1 • Published 7 years ago
feather2-postprocessor-inline-compress v1.0.1
feather2-postprocessor-inline-compress
feather2-postprocessor-inline-compress是feather2中的一个内联样式以及js进行压缩的插件,它可同样作为fis的插件进行使用。
#使用
npm install feather2-postprocessor-inline-compress
conf/conf.js
feather.config.get('postprocessor').push('inline-compress');
index.html
<script compress>
(function(window){
console.log(123);
})(window);
</script>
<style type="text/css" compress>
div{
font-size: 12px;
font-weight: bold;
}
</style>