Giter Site home page Giter Site logo

jsmin.novaextension's Introduction

JsMin Extension for Nova

Automatically minify js files on save. Menu options to Compress, Mangle or Beautify current script.

Requirements

Before using this extension, you must ensure that uglifyjs is installed on your system.

UglifyJS Install

  1. Install Node.
    1. Via the Node website
    2. or using Homebrew brew install node
  2. Via Terminal run npm install uglify-es -g

Extension Installation

  1. Open Nova.
  2. Choose menu Extensions > Extension Library...
  3. Search extension NovaJsMin
  4. Click Install.

Preferences

Minify on Save
Yes, No
Automatically minify .js files on save

Mangle
Yes, No
Mangle names

Generate Source Map
Yes, No
Enable source map file generation

Executable Path
/path/to/uglifyjs
Manually enter or select the uglifyjs binary location.

jsmin.novaextension's People

Contributors

vinecode-andy avatar

Watchers

James Cloos avatar

Forkers

colinfoster

jsmin.novaextension's Issues

Some js file won't minify ?

Hi

I have a project with multiple js files.

When I save, some file will minify, some other won't.

I don't see anything in the logs in Nova.

Merge multiple

Hi, thanks for the extension, I was wondering if there's a way to merge files, for example a @ import('some other js file path'), something like code kit has

Thanks

Error in JsMin for Nova.

ERROR: ENOENT: no such file or directory, open '/var/www/vhosts/cre8te-development.com/httpdocs/6_lloyds copy/js/main.js'
at Object.openSync (fs.js:476:3)

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.