module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    settings: grunt.file.readJSON('settings.json'),

    compass: {
      dist: {
        options: {
          sassDir: 'sass',
          cssDir: 'stylesheets'
        }
      }
    },

    inline: {
      dist: {
        options:{
          cssmin: true,
          uglify: true
        },
        src: ['_Dropshare-LandingPage.html'],
        dest: ['Dropshare-LandingPage.html']
      }
    },

    replace: {
      root: {
        src: ['<%= inline.dist.dest  %>'],             // source files array (supports minimatch)
        dest: '<%= inline.dist.dest  %>',             // destination directory or file
        replacements: [{
          from: '{{rooturl}}',
          to: '<%= settings.rooturl  %>'
        },
        {
          from: '{{ga}}',
          to: '<%= settings.ga  %>'
        }
        ]
      }
    }

  });

  // Load the plugin that provides the "compass" task.
  grunt.loadNpmTasks('grunt-contrib-compass');

  // Load the plugin that provides the "inline" task.
  grunt.loadNpmTasks('grunt-inline');

  // Load the plugin that provides the "replace" task.
  grunt.loadNpmTasks('grunt-text-replace');

  // Default task(s).
  grunt.registerTask('default', ['compass', 'inline', 'replace']);

};

@@ -427,17 +427,16 @@
    src: 
-%5B
 '_Dropsh
@@ -456,17 +456,16 @@
 ge.html'
-%5D
 ,%0A      
@@ -472,17 +472,16 @@
   dest: 
-%5B
 'Dropsha
@@ -500,17 +500,16 @@
 ge.html'
-%5D
 %0A      %7D

fix inline bug