@qinyuanqiu/compile-statics
a compile plugin for php-frame statics files
Last updated 4 months ago by qinyuanqiu .
ISC · Original npm · Tarball · package.json
$ cnpm install @qinyuanqiu/compile-statics 
SYNC missed versions from official npm registry.

php 框架下的静态文件压缩以及版本号更新

  1. 安装
npm install @qinyuanqiu/compile-statics
  1. 在package.json中配置命令行
    // package.json
    "scripts": {
    	"[order]": "compile-statics statics=[path]"
    },
    
  2. 运行npm run [order] 注:默认会在package.json中注入
    "browserslist": [
        "cover 99.5%"
    ],
    "sideEffects": [
    	"*.css",
    	"*.less"
    ]
    
    默认生成webpack.config.js文件,可自行配置
  3. 监听目录下的新图片会直接编译,修改图片名也会触发编译,但是替换图片不会触发更新
  4. 支持ES6所有特性

Current Tags

  • 1.1.4                                ...           latest (4 months ago)

18 Versions

  • 1.1.4                                ...           4 months ago
  • 1.1.3                                ...           4 months ago
  • 1.1.2                                ...           4 months ago
  • 1.1.1                                ...           4 months ago
  • 1.1.0                                ...           4 months ago
  • 1.0.12                                ...           4 months ago
  • 1.0.11                                ...           5 months ago
  • 1.0.10                                ...           5 months ago
  • 1.0.9                                ...           5 months ago
  • 1.0.8                                ...           5 months ago
  • 1.0.7                                ...           5 months ago
  • 1.0.6                                ...           5 months ago
  • 1.0.5                                ...           5 months ago
  • 1.0.4                                ...           5 months ago
  • 1.0.3                                ...           5 months ago
  • 1.0.2                                ...           5 months ago
  • 1.0.1                                ...           5 months ago
  • 1.0.0                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (23)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |