Permalink
Browse files

get rid of sourcemap urls which give 404s

  • Loading branch information...
1 parent 2c47a8e commit 0632ff2b73ecb95d6014e4b4db73f4969b44a44e @skyronic committed May 19, 2015
Showing with 16 additions and 1 deletion.
  1. +14 −0 Gruntfile.js
  2. +2 −1 package.json
View
@@ -61,6 +61,18 @@ module.exports = function(grunt) {
},
clean: {
+ },
+ replace: {
+ sourceMaps: {
+ src: ["src/static/build/js/crudkit-libs.min.js"],
+ overwrite: true,
+ replacements: [
+ {
+ from: "sourceMappingURL",
+ to: ""
+ }
+ ]
+ }
}
});
@@ -69,7 +81,9 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-clean');
+ grunt.loadNpmTasks('grunt-text-replace');
+ grunt.registerTask('buildStatic', ['concat', 'replace'])
grunt.registerTask('default', ['']);
};
View
@@ -26,6 +26,7 @@
"grunt-contrib-concat": "^0.5.1",
"grunt-contrib-copy": "^0.8.0",
"grunt-contrib-less": "^1.0.1",
- "grunt-contrib-watch": "^0.6.1"
+ "grunt-contrib-watch": "^0.6.1",
+ "grunt-text-replace": "^0.4.0"
}
}

0 comments on commit 0632ff2

Please sign in to comment.