Comments (7)
You're probably missing YUI or the closure compiler on your workstation.
Cheers,
On Aug 30, 2014 7:19 AM, "Richard Cornish" [email protected] wrote:
When I run cactus build or cactus serve, I get errors related to my use
of optimize in config.json:Could not call external processor YUICSSOptimizer: [Errno 2] No such file or directory
Could not call external processor ClosureJSOptimizer: [Errno 2] No such file or directoryWhen I load up a console, importing them like static/static_optimizers.py
does loads them no problem, so I don't know what I'm doing wrong.from cactus.contrib.external.yui import YUICSSOptimizer`
I'm using the v3 branch.
My config.json:
{
"fingerprint": [
"js",
"css"
],
"optimize": [
"js",
"css"
],
"prettify": true
}—
Reply to this email directly or view it on GitHub
#103.
from cactus.
Just to clarify that last point
The IOError you are seeing is for the external processor (e.g. closure
compiler). It's not for the plugin file.
Cheers,
from cactus.
Thanks, I didn't realize they were external dependencies. Both can be installed with Homebrew. I installed YUI, but Closure requires Java 7, which is no longer installed on Mavericks.
I like the lightweight idea of the plugin system, but the front-end related ones seem to cover near identical ground to Grunt. Optimizing and fingerprinting is good, but there's no uglifying or concatenating. Forgive me if I'm not seeing the larger picture.
from cactus.
Hi there,
The plugin system is intentionally very flexible, and actually gives you
sufficient flexibility to integrate with the frontend framework(s) of your
choice (i.e. your plugin can totally rewrite Cactus's list of discovered
static assets, and Cactus won't mind).
For one, I integrated with require.js and scss (I believe grunt wasn't
really a thing just yet when I worked on this).
So, to answer your original question. Yes, the built-in minification
plugins are a lightweight solution. However, if you find them too limited,
or somehow just prefer something else, you definitely don't have to use
them.
Cheers,
On Aug 31, 2014 12:15 AM, "Richard Cornish" [email protected]
wrote:
—
Reply to this email directly or view it on GitHub
#103 (comment).
from cactus.
Sorry for being so basic, but I have no idea how to install YUI whatsoever, so I looked it in the Ubuntu Software Center and found at leat 4 packages that have "YUI" in the name, but after installing a few the error keeps appearing :/
I'm also getting the ClosureJSOptimiser message, and I don't wanna keep messing up with things I don't understand, as long as I don't have to. Is there anything wrong in systematically ignoring this messages?
from cactus.
YUICSSOptimizer is the name of a Cactus plugin. Under the hood it uses YUI Compressor, which is a Java jar package. The GitHub page is at https://github.com/yui/yuicompressor.
ClosureJSOptimizer is also the name of a Cactus plugin. It uses Google Closure Compiler, which is a also a Java jar package. The GitHub page is at https://github.com/google/closure-compiler.
I have a Mac, and thus use Homebrew to make my life easy to install these packages. If you're on Ubuntu, it seems like the best thing to do would be to create your own builds with Ant, which seems to be available as an Ubuntu package (apt-get install ant
). But first you would need Java on Ubuntu because Ant, YUI Compressor, and Google Closure Compiler all require it as a dependency.
from cactus.
OK, thanks for the advice.... I've already checked and I do have java in my computer. I didn't knew how to install the pacakges after downloading them, I will check Ant later 👍
from cactus.
Related Issues (20)
- cactusformac.com Offline HOT 11
- django 1.6 conflicts with python 3.5 from conda install HOT 1
- fatal error for cryptography-1.5.2 during python setup.py install HOT 1
- Objects and arrays yaml variables not working HOT 4
- Using Django Compressor HOT 1
- locale problem in django 1.6.11 HOT 2
- Django variable CURRENT_PAGE.absolute_final_url not existing in Cactus 1.1.22 (440) HOT 8
- How can I remove the /posts/ part in my URL while keeping the posts folder?
- Blog Plugin Not Working? HOT 2
- Can't build because of missing staticfiles template HOT 1
- [question] Still maintained? HOT 6
- Urls in sites without locale being prefixed by 'en-us' HOT 1
- Is there a way to turn off gzip compression when deploying to AWS? HOT 1
- robots.txt shoud feature full URL to site.
- Testing site before uploading HOT 2
- Pretty URLs on S3 with HTTPS
- [question] New release? HOT 1
- cactus build fails with Python3 HOT 3
- No Updates since 3 years? HOT 9
- cactus serve fails
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 cactus.