0.2.8 • Published 2 years ago

fp-uglify v0.2.8

Weekly downloads
4
License
MIT
Repository
github
Last release
2 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

2 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago