Skip to content

Instantly share code, notes, and snippets.

@aleksplus
Created March 9, 2017 21:29
Show Gist options
  • Select an option

  • Save aleksplus/6a850c3db210ffb711b457b9c16561a7 to your computer and use it in GitHub Desktop.

Select an option

Save aleksplus/6a850c3db210ffb711b457b9c16561a7 to your computer and use it in GitHub Desktop.
// "brfs": "^1.4.3",
// "webworkify-webpack": "^1.1.8",
// "transform-loader": "^0.2.3",
module.exports = {
module: {
noParse: /node_modules\/mapbox-gl\/dist\/mapbox-gl.js/,
loaders: [
{
test: /mapbox-gl.+\.js$/,
query: 'brfs',
loader: 'transform-loader'
},
],
},
resolve: {
alias: {
'webworkify': 'webworkify-webpack'
}
},
node: {
fs: 'empty',
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment