Comments (4)
@randdusing I'll try to imitate your working environment and see if I can reproduce the problem. It's most likely due to the fact that you have Cordova CLI 4.1.2 (and Apache having changed something between 3.5 to 4.1.2).
from cordova-minify.
Thanks @alastairparagas. Maybe this post will help? http://stackoverflow.com/questions/24288131/integrating-file-minification-into-cordova-phonegap-build-process
from cordova-minify.
@randdusing have you checked it is actually executing the code?
Try this: sudo cordova build ios -d
Then check the debug output. In my case (on mac) I had to make minify.js executable
chmod +x minify.js
from cordova-minify.
Oops, that was mostly the issue. I didn't see the Quirks section of the readme, which mentions this as well: "On Linux and OSX: hooks folder needs to have permissions modified. Perform a chmod -R 755 /hooks to resolve this issue." After changing the permissions, I still received an error. But after clearing out node_modules and reinstalling cordova-minify, it worked perfectly.
from cordova-minify.
Related Issues (15)
- execvp(): Permission denied error HOT 7
- Using the hook causes Ionic to be unable to find modules. HOT 2
- npm package is outdated? HOT 3
- Node modules not being picked up HOT 1
- build failing after adding this to my project HOT 1
- Cannot find module 'image-min' HOT 3
- Not minifying JS
- Hook doesn't start. Node env error. HOT 24
- [minor] uglify-js must not already be present in the package.json of the app HOT 2
- Not working HOT 2
- Error running on Mac HOT 1
- npm uninstall leaves the hook behind HOT 4
- Too long path names on windows HOT 1
- Not working with Ionic - Failed to instantiate module starter due to: Unknown provider: t HOT 1
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 cordova-minify.