enb-closure-compiler-js
v1.0.0
Published
ENB wrapper for JS version of Google Closure Compiler
Downloads
2
Readme
enb-closure-compiler-js
The project is ENB tech wrapper for JS version of closure-compiler.
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.