Skip to content

Commit

Permalink
Work around a Webpack warning from GeoJS
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhelba committed Mar 1, 2018
1 parent efca76e commit 56cfacc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webpack.helper.js
Original file line number Diff line number Diff line change
@@ -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');

Expand All @@ -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
Expand Down

0 comments on commit 56cfacc

Please sign in to comment.