Narnia's Psychedelic Mushrooms

    grunt-web-server-rewrite

    0.1.1 • Public • Published

    Grunt Web Server Rewrite

    Install

        npm install grunt-web-server-rewrite

    Usage example:

    In first step, create a file called rewrite.json where is folder root.

    rewrite.json

        {
            "pages": {
                "/": "index.html",
                "/products/(.*)": "index.html"
            }
        }
    

    In Gruntfile.js

        'web-server-rewrite': {
            config: {
                port: 2000,
                base: path + 'web_static/',
                keeplive: false
            }
        }
        grunt.loadNpmTasks('grunt-web-server-rewrite');

    Install

    npm i grunt-web-server-rewrite

    DownloadsWeekly Downloads

    2

    Version

    0.1.1

    License

    none

    Last publish

    Collaborators

    • renanveroneze