Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cmandersen/elixir-google-compiler
A Laravel Elixir extension for Google's Closure Compiler
https://github.com/cmandersen/elixir-google-compiler
Last synced: 11 days ago
JSON representation
A Laravel Elixir extension for Google's Closure Compiler
- Host: GitHub
- URL: https://github.com/cmandersen/elixir-google-compiler
- Owner: cmandersen
- Created: 2016-09-05T12:24:26.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-05T13:32:13.000Z (about 8 years ago)
- Last Synced: 2024-10-02T13:16:07.332Z (about 2 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Elixir Closure Compiler
This is an extension for Laravel Elixir, integrating Google's Closure Compiler.
## Installation
`npm install --save elixir-google-compiler`
## Usage
``` javascript
var elixir = require('laravel-elixir');
require('elixir-google-compiler');
elixir(function(mix) {
mix.compile('path/to/file.js', 'dest/folder', {
compilationLevel: 'SIMPLE',
warningLevel: 'VERBOSE',
jsOutputFile: 'output.min.js'
// Even more options
});
});
```## Options
The options that can be supplied to the compiler are the same as [Google's Compiler](https://github.com/google/closure-compiler-js#flags).