1.0.0 • Published 7 years ago

enb-closure-compiler-js v1.0.0

Weekly downloads
3
License
-
Repository
github
Last release
7 years ago

enb-closure-compiler-js

The project is ENB tech wrapper for JS version of closure-compiler.

NPM version Build Status Coverage Status Dependency Status

Installation

Install enb-closure-compiler-js package:

$ npm install --save-dev enb-closure-compiler-js

Requirements: enb 0.16.0+.

Quick start

module.exports = function(config) {
    config.nodes('*.bundles/*', function(nodeConfig) {
        nodeConfig.addTechs([
            [require('enb-closure-compiler-js/techs/closure-compiler'), {
                target: '?.js',
                source: '?.pre.js',
                flags: {
                    compilationLevel: 'SIMPLE'
                },
                sourcemap: true
            }]
        ]);
    });
};

Available flags

See https://github.com/google/closure-compiler-js#flags.

License

© 2016 YANDEX LLC. Код лицензирован Mozilla Public License 2.0.