上一页 1 ··· 484 485 486 487 488 489 490 491 492 ··· 499 下一页
摘要: When you minify your code with a tool like Uglify, the resulting minified file will rename variables. This is a problem for AngualrJS, which uses para... 阅读全文
posted @ 2014-11-18 17:47 Zhentiw 阅读(1043) 评论(0) 推荐(0)
摘要: Local Install:npm install -g traceurnpm install grunt-contrib-watchnpm install grunt-traceur-latestGruntFile:module.exports = function(grunt){ grun... 阅读全文
posted @ 2014-11-17 22:55 Zhentiw 阅读(404) 评论(0) 推荐(0)
摘要: 6.2Setting Up socket.io Server-SideSo far we've created an Express server. Now we want to start building a real-time Q&A moderation service and we've ... 阅读全文
posted @ 2014-11-17 22:08 Zhentiw 阅读(959) 评论(0) 推荐(0)
摘要: Grunt will clean up your build with the grunt-contrib-clean to make sure that no artifacts from previous builds are hanging around. Install: npm insta 阅读全文
posted @ 2014-11-17 18:28 Zhentiw 阅读(275) 评论(0) 推荐(0)
摘要: For production we want to use minified javascript to reduce the payload that is sent from the server. This can easily be accomplished with grunt-uglif... 阅读全文
posted @ 2014-11-17 18:12 Zhentiw 阅读(239) 评论(0) 推荐(0)
摘要: Combine serval javascript files together.For angular project, make sure you add angular.min.js first, then app.js (which contains main module) second,... 阅读全文
posted @ 2014-11-17 05:46 Zhentiw 阅读(287) 评论(0) 推荐(0)
摘要: With Grunt you can automate core tasks for your AngularJS project. In this lesson we will take a look at converting Stylus files to CSS, and add a wat... 阅读全文
posted @ 2014-11-17 05:28 Zhentiw 阅读(262) 评论(0) 推荐(0)
摘要: Let's combine uglifying, watching, and config stuff into one Grunt file to make it more of a standard Grunt file.Install:npm install gruntnpm install ... 阅读全文
posted @ 2014-11-16 05:14 Zhentiw 阅读(321) 评论(0) 推荐(0)
摘要: Grunt Uglify to compress your javascript for production deployment.Installnpm install grunt-contrib-uglifyExample/** * Created by Answer1215 on 11/15/... 阅读全文
posted @ 2014-11-16 04:33 Zhentiw 阅读(188) 评论(0) 推荐(0)
摘要: /** * Created by Answer1215 on 11/15/2014. */module.exports = function(grunt){ grunt.initConfig({ files: ["'js'", "html"], compile: "... 阅读全文
posted @ 2014-11-15 23:02 Zhentiw 阅读(247) 评论(0) 推荐(0)
上一页 1 ··· 484 485 486 487 488 489 490 491 492 ··· 499 下一页