GithubHelp home page GithubHelp logo

go-minifier's Introduction

Go Minifier

Go Minifier is is a lightweight command-line tool designed to simplify and streamline the minification process for CSS and JS (upcoming) files,. Minification involves the removal of unnecessary characters and spaces from code, resulting in smaller file sizes that contribute to improved web page loading times.

1. Requirement

  • Go

2. Installation & Setup

  • Install Go Minifier to using directly from command line
go install github.com/Alitindrawan24/go-minifier
  • For local development, clone project from the repository using http
git clone https://github.com/Alitindrawan24/go-minifier.git
  • Clone project from the repository if using ssh
git clone [email protected]:Alitindrawan24/go-minifier.git

3. Usage

  • To minify a css file, run the following command and the minify file will be generated on the same directory with same name as the css file but using min.css extension
go run . -src=filename.css
  • To customize the output filename and extension, run the following command
go run . -src=filename.css -out=out.min.css

4. Todo

  • Minify js file
  • Minify all css/js in a directory

go-minifier's People

Contributors

alitindrawan24 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.