Skip to content

Instantly share code, notes, and snippets.

@distinctgrey
Last active December 18, 2015 03:49

Revisions

  1. distinctgrey revised this gist Jun 6, 2013. 3 changed files with 25 additions and 1 deletion.
    24 changes: 24 additions & 0 deletions Gruntfile.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    var modRewrite = require('connect-modrewrite');

    [...]

    connect: {
    options: {
    port: 9000,
    // change this to '0.0.0.0' to access the server from outside
    hostname: 'localhost'
    },
    livereload: {
    options: {
    middleware: function (connect) {
    return [
    modRewrite([
    '!\\.?(js|css|html|hbs|eot|svg|ttf|woff|otf|css|png|jpg|git|ico) / [L]'
    ]),
    lrSnippet,
    mountFolder(connect, '.tmp'),
    mountFolder(connect, 'app')
    ];
    }
    }
    },
    1 change: 1 addition & 0 deletions console
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    npm install connect-modrewrite --save-dev
    1 change: 0 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    # Yeoma
  2. distinctgrey created this gist Jun 6, 2013.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    # Yeoma