GithubHelp home page GithubHelp logo

mhleilei / fis3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fex-team/fis3

0.0 1.0 0.0 11.41 MB

FIS3

Home Page: https://fex-team.github.io/fis3

License: BSD 2-Clause "Simplified" License

Makefile 0.09% JavaScript 71.16% Shell 0.40% CSS 3.63% HTML 1.48% Smarty 9.15% PHP 14.10%

fis3's Introduction

FIS3

Build Status Coverage Status

FIS3 面向前端工程构建系统。解决前端工程中性能优化、资源加载(异步、同步、按需、预加载、依赖管理、合并、内嵌)、模块化开发、自动化工具、开发规范、代码部署等问题。

如果对FIS先有些了解,但理解不深的,可试着带着这句话去看文档
FIS3 会在配置文件中给文件添加相应属性,用于控制文件的编译、合并等各种操作;文件属性包括基本属性和插件属性,详细请参考

npm install -g fis3

文档

快速入门、配置、插件开发以及原理等文档 doc/docs/INDEX.md

例子

mkdir my-proj
cd my-proj
fis3 init
fis3 release
fis3 server start --type node

fis-conf.js 的例子

// default settings. fis3 release
fis
  .media('dev')
  //添加基本属性 useHash
  .match('**', {
    useHash: false
  });


// fis3 release production
fis
  .media('production')
  //添加插件属性 optimizer
  .match('*.js', {
    optimizer: fis.plugin('uglify-js') // 用 fis-optimizer-uglify-js 压缩 js
  })

  .match('*.{css,scss}', {
    optimizer: fis.plugin('clean-css') // 用 fis-optimizer-clean-css 压缩 css
  })

  .match('*.png', {
    optimizer: fis.plugin('png-compressor') // 用 fis-optimizer-png-compressor 压缩 png 图片
  });

其他例子

https://github.com/fex-team/fis3-demo

常用插件

###优化类(插件属性:optimizer)

###预处理类(插件属性:parser)

fis3's People

Contributors

2betop avatar hanai avatar hefangshi avatar jincdream avatar naixor avatar oxund avatar worry127722 avatar zhangjunah avatar zhangtao07 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.