gulp-view-complete
gulp plugin for collect html like template resource
Last updated 2 years ago by pansinm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-view-complete 
SYNC missed versions from official npm registry.

gulp-view-complete

将类html模板引用的资源编译打包,加摘要

input:

<link rel="stylesheet" href="../fixture/less.less">
<link rel="stylesheet" href="../fixture/scss.scss">
<link rel="stylesheet" href="../fixture/css.css">
<%= hello %>
<img src="../fixture/test.png">
<script src="../fixture/test.js"></script>

output

<link rel="stylesheet" href="/css/less-c583c27e75e8fe6583b6.css">
<link rel="stylesheet" href="/css/scss-d60e5a3e44d1e921b1b6.css">
<link rel="stylesheet" href="/css/css-67a5359869b62d820ff4.css">
<%= hello %>
<img src="/img/test-25afbecf00164029ffca.png">
<script src="/js/test-1967298b1af240420f09.js"></script>

Usage

 gulp
  .src(path.join(__dirname, 'app/view.ejs'))
  .pipe(viewComplete({
    publicPath: '/',
    assetsPath: path.join(__dirname, 'dist'),
  }))
  .pipe(gulp.dest('views'));

TODO

[ ] css 压缩 [ ] map

Current Tags

  • 0.1.4                                ...           latest (2 years ago)

5 Versions

  • 0.1.4                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 5
Dependencies (6)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |