From 56cfacc82ac6d9aec362324ce74538254f7793a9 Mon Sep 17 00:00:00 2001 From: Brian Helba Date: Wed, 28 Feb 2018 21:28:20 -0500 Subject: [PATCH] Work around a Webpack warning from GeoJS --- webpack.helper.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webpack.helper.js b/webpack.helper.js index ade1ae30..6827463c 100644 --- a/webpack.helper.js +++ b/webpack.helper.js @@ -1,5 +1,6 @@ const path = require('path'); +const webpack = require('webpack'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const GoogleFontsPlugin = require('google-fonts-webpack-plugin'); @@ -23,7 +24,10 @@ module.exports = function (baseConfig, helperConfig) { variants: ['regular', 'bold'] } ] - }) + }), + // GeoJS tries to "require('Hammer')" (an optional dependency), which causes Webpack + // warnings + new webpack.IgnorePlugin(/^Hammer$/, /geojs$/) ]; // Add loader rules for additional types