Git Product home page Git Product logo

webdist's Introduction

webdist

传统模式开发的web站点,进行整站所有文件压缩及混淆处理

很多公司开发的项目或非web前端工程师开发的一些web前端页面或系统都不是基于NodeJS或当前流行的前端技术栈来开发的,对于这部分人群来说压缩混淆整个web站点还是有点难度。

我们开发了一个基于gulp的直接简单易用的整站压缩混淆工具,会保持原项目的所有目录结构,递归进行对所有文件的压缩和混淆处理,使用步骤如下:

使用:

  • 1、首次使用输入命令:npm install 或 cnpm install 安装依赖包
  • 2、将需要压缩的站点放在src目录下,执行npm run build 命令后,结果站点会生成在disc目录下。
  • 3、将disc目录拷贝至http服务容器中进行发布访问即可。

提示:

  • 1、如果中间有报错,按提示修改相关文件内容,直至无错误提示
  • 2、部分如cesium等复杂的关联性lib 不能进行压缩,可修改配置文件 或 将源文件覆盖至压缩后的文件中。、
  • 3、如果你懂点javascript技术,可以打开gulpfile.js文件,按需修改配置。

支持:

  • 支持js文件混淆及压缩
  • 支持css、html、图片文件压缩
  • 保持原项目的所有目录结构和其他格式文件的复制

webdist's People

Contributors

muyao1987 avatar

Watchers

James Cloos 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.