Skip to content
This repository was archived by the owner on Apr 10, 2018. It is now read-only.

v8.json require json-loader when using webpack #435

Closed
alex3165 opened this issue Mar 27, 2016 · 1 comment
Closed

v8.json require json-loader when using webpack #435

alex3165 opened this issue Mar 27, 2016 · 1 comment

Comments

@alex3165
Copy link

Would be nice to not constrain webpack user to have json-loader when using mapbox-gl, the error that we have if we don't use json-loader:

ERROR in ./~/mapbox-gl-style-spec/reference/latest.js
Module not found: Error: Cannot resolve module 'json' in [path]/node_modules/mapbox-gl-style-spec/reference
 @ ./~/mapbox-gl-style-spec/reference/latest.js 1:17-37

The solution would be to bundle the latest.js file with v8.json together into a js file.

@jfirebaugh
Copy link
Contributor

Use of mapbox-gl-js with webpack is now documented here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants