gruntjs

Node WebKit and YouTube: chrome is not defined

♀尐吖头ヾ 提交于 2019-12-07 11:47:12
问题 I'm developing an app for Android , iOS , Mac OS and Windows using PhoneGap and Node-WebKit . This application has embedded youtube videos. These youtube videos are working fine in my Mobile app ( Android / iPhone ) using PhoneGap , but if I test it on my Mac (building the app using grunt node-webkit builder) I get the following error: Uncaught ReferenceError: chrome is not defined www-embed-player.js:184 I tried to check that line and there is some code like: chrome.cast.requestSession(v

JavaScript minification workflow with Maven

[亡魂溺海] 提交于 2019-12-07 11:40:55
问题 I am wondering about any "best practices" to integrate a "modern JavaScript build workflow" into a Maven build that produces a WAR artifact. I have found several maven plugins that handle concatenation and minification: WRO4J: https://code.google.com/p/wro4j/wiki/MavenPlugin Minify Maven Plugin: https://github.com/samaxes/minify-maven-plugin YUI: http://alchim.sourceforge.net/yuicompressor-maven-plugin/ However I am still missing how they fit into a full build workflow, since I think it is

grunt-contrib-build' is not in the npm registry

☆樱花仙子☆ 提交于 2019-12-07 11:03:50
问题 I'm getting below error when I try to install npm install grunt-contrib-build --save-dev on my Windows 7 system using command prompt. C:\css-base>npm install grunt-contrib-build --save-dev npm WARN package.json my-project@0.1.0 No README.md file found! npm http GET https://registry.npmjs.org/grunt-contrib-build npm http 404 https://registry.npmjs.org/grunt-contrib-build npm ERR! 404 'grunt-contrib-build' is not in the npm registry. npm ERR! 404 You should bug the author to publish it npm ERR!

Grunt Uglify source map “unable to write”

我的梦境 提交于 2019-12-07 08:20:15
问题 I'm using Grunt to concat and minify files (with grunt-contrib-uglify and grunt-contrib-concat ) and I wanted to add a source map. The uglify docs say to just add an option for sourceMap set to a boolean of true. But when I add that to my tasks (I've tried a couple different ones) the process runs fine until it gets to the source map part, then I get: Writing true...ERROR Warning: Unable to write "true" file (Error code: undefined). Use --force to continue. The concatenation is done, the

how to rewrite relative url in minified css with cssmin?

旧城冷巷雨未停 提交于 2019-12-07 07:18:02
问题 I've been looking for a solution to my issue and I've found posts with similar problems, but not the same. I have the following folder structure: js └── GUIFramework ├── external └── WaspFramework ├── Core └── GUI └── Controls └── WaspMask ├── css │ └── WaspMask.css └── resources └── default_loader_circle.gif Inside WaspMask.css file I have this rule: .wasp-loader-default { background-image: url("../resources/default_loader_circle.gif"); } Well, I've tried to minify it (combined with other

how to use grunt-usemin with font awesome

谁说胖子不能爱 提交于 2019-12-07 06:50:44
问题 I am trying to use grunt-usemin to minify my css. I am using Font Awesome like this within my index.html <link rel="stylesheet" href="components/font-awesome/css/font-awesome.min.css"> When I run usemin, I get all the styles combined. However, when I try to use the minified version, the Font Awesome icons show up as unicode squares (not as the intended icons). Any ideas on how to fix this? I can include more information if needed. 回答1: The problem was that font-awesome.min.css is referencing

Grunt task Compass fails - Could not find RubyGem compass (>= 0)

我的未来我决定 提交于 2019-12-07 06:15:41
问题 I recently transfered machines from an iMac to a new Mac Book Pro with Mavericks. All was well but I noticed that Grunt was crashing when I saved a file (the auto update wasn't working). I tried to update my system but when I run my grunt tasks via the terminal I get the following error: Running "compass:dev" (compass) task /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem compass (>= 0) (Gem::LoadError)

Shim from grunt-contrib-requirejs not wrapping library

混江龙づ霸主 提交于 2019-12-07 05:54:09
问题 I am using requirejs and configuring my product artifacts, thus combining my libraries and setting up module dependencies between them to get the loading sequence appropriate using the grunt task for requirejs. I have no problem using runtime module injection while in my livereload server which has access to non-combined libraries. For the sake of clarity I have disabled all minification/uglification and turned on a js-beautify. requirejs: { dist: { // Options: https://github.com/jrburke/r.js

Disable minification in Grunt (Yeoman)

六眼飞鱼酱① 提交于 2019-12-07 05:28:16
问题 I recently started using GruntJS through Yeoman and I like the idea of Javascript minification, but it presents difficulties during development. I tried to disable uglify,usemin, etc in different combinations in the Gruntfile but everything seems to be dependent on another thing and breaks the process. Is there a simple way to disable minification? I am using the latest versionof Grunt offered by Yeoman to date, I found that older solutions have a different Gruntfile setup than that usd with

Error: “compass:dist” Fatal error: spawn /usr/bin/compass ENOENT

邮差的信 提交于 2019-12-07 05:11:04
问题 Guys, I'm generating build my application with the grunt, it uses the compass. I set some variables: export GEM_PATH =/usr/local/rvm/gems/ruby-2.1.2:/usr/local/rvm/gems/ruby-2.1.2@global export PATH=$PATH:/usr/local/rvm/gems/ruby-2.1.2/bin export PATH=$PATH:/usr/local/rvm/rubies/ruby-2.1.2/bin; export PATH=$PATH:$GEM_PATH; export PATH=$PATH:node_modules/grunt-cli/bin; and perform the build grunt. The following Fatal error is : 4mRunning "compass:dist" (compass) task[24m 31mFatal error: spawn