Comments (2)
yes this is question - I cant setup this is only compiler - just looping is needed
from grunt-closure-compiler.
@skotchio We recently configured this for our large project. We wanted to compile a .js file minify and put it back into the same path as the regular .js file. The following is how we achieved what you want:
'closure-compiler': {
// minify JS files in-place
compileInPlace: {
files: [
{
expand: true,
cwd: './',
src: [
'js/edit.js',
// ....more files
],
dest: './',
rename: function (dest, src) {
// NOTE : this is done so we can support files "abc.def.js" and preserve the ".def" part.
return dest + '/' + src.replace('.js', '.min.js');
}
}
],
options: {} // ... your options here
},
}
Based on the configuration above, it will take js/edit.js and closure compile it into a file called js/edit.min.js. Hope this helps you out!
from grunt-closure-compiler.
Related Issues (20)
- FYI HOT 1
- Enhancement: change compilation levels for certain files. HOT 4
- CLOSURE_PATH location issues on Win7 HOT 5
- Grunt 0.4 Release
- Option avoid report.txt file creation HOT 2
- Externs option is not recognized HOT 1
- Include Closure HOT 1
- Warning: Missing js property. Use --force to continue. HOT 5
- No files HOT 1
- Service Option Enhancement
- Task hangs if file is nonexistant
- setting closurePath HOT 12
- Command failed: java.io.FileNotFoundException HOT 2
- No Source Map Support HOT 1
- Use java_home in path to java
- No support for closure-compiler NPM package HOT 3
- Closure Compiler installation from source is out of date
- Add support for Node 8 (update grunt version)
- solo js case
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-closure-compiler.