0.2.8 • Published 4 years ago

fp-uglify v0.2.8

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

Uglify extension for Fepper client-side JavaScript

Known Vulnerabilities Linux Build Status Mac Build Status Windows Build Status Coverage Status License

Install

cd extend
npm install --save-dev fp-uglify

Use

Add these tasks to extend/contrib.js

  • Under gulp task 'contrib:frontend-copy'
    • 'uglify'
  • Under gulp task 'contrib:static'
    • 'uglify'

On the command line:

fp uglify

This extension minifies .js files in the paths.source.jsSrc directory as declared in patternlab-config.json. This minifies with UglifyJS, so ES6+ is not supported.

Options can be set in pref.yml as per these examples:

uglify:
  # Respects most options documented at
  # https://github.com/mishoo/UglifyJS2#minify-options
  # The sourceMap option is a little different.
  # Setting it to true writes default external sourcemaps,
  # one per `.js` file.
  # By default, external sourcemaps will take the name of
  # the `.js` file and append `.map`. 
  sourceMap: true

The following will write sourcemaps inline:

uglify:
  sourceMap:
    url: inline

Tasks

'uglify'

  • Writes the minified JavaScript to the paths.source.jsBld directory as declared in patternlab-config.json. The minified files will have .min.js extensions.
0.2.8

4 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago