From 7645c09f941f5c4d812700759d16867d39342924 Mon Sep 17 00:00:00 2001 From: Andrea Pinazzi Date: Thu, 21 Jan 2016 16:05:05 +0100 Subject: [PATCH] use json-loader as Ajv require some json files --- gulpfile.js | 5 +++++ package.json | 1 + 2 files changed, 6 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index bfc09fa..ab1bcc7 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -41,6 +41,11 @@ var compiler = webpack({ filename: NAME + '.js' }, plugins: [ bannerPlugin ], + module: { + loaders: [ + { test: /\.json$/, loader: "json" } + ] + }, cache: true }); diff --git a/package.json b/package.json index c1e37c8..093426b 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "gulp-minify-css": "^0.4.5", "gulp-shell": "^0.3.0", "gulp-util": "^3.0.3", + "json-loader": "^0.5.4", "mkdirp": "^0.5.0", "mocha": "^2.1.0", "uglify-js": "^2.4.16",