てぃーだブログ › Ruby 勉強会 › Gruntで簡易webサーバの立ち上げ

Gruntで簡易webサーバの立ち上げ

2014年10月22日

参考URL: http://qiita.com/nantekkotai/items/d2f6a697f7b12ff6245f
ありがとうございます。大変参考になりました。

超まとめ
npm init
npm install grunt-contrib-connect
vi Gruntfile.js
grunt [default]



 ##  Gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
connect: {
server: {
options: {
port: 9000,
keepalive: true,
hostname: 'localhost'
}
}
}

});
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.registerTask('default',['connect']);
};



タグ :grunt


Posted by kanedayo at 14:37│Comments(0)
上の画像に書かれている文字を入力して下さい
 
<ご注意>
書き込まれた内容は公開され、ブログの持ち主だけが削除できます。