mirror of
https://github.com/maputnik/editor.git
synced 2026-04-20 16:30:01 +00:00
Fix build process for mapbox gl
This commit is contained in:
@@ -32,11 +32,25 @@ module.exports = {
|
||||
filename: '[chunkhash].js'
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'webworkify': 'webworkify-webpack',
|
||||
},
|
||||
extensions: ['', '.js', '.jsx']
|
||||
},
|
||||
module: {
|
||||
loaders
|
||||
},
|
||||
module: {
|
||||
loaders,
|
||||
postLoaders: [{
|
||||
include: /node_modules\/mapbox-gl-shaders/,
|
||||
loader: 'transform',
|
||||
query: 'brfs'
|
||||
}]
|
||||
},
|
||||
node: {
|
||||
fs: "empty"
|
||||
},
|
||||
plugins: [
|
||||
new WebpackCleanupPlugin(),
|
||||
new webpack.DefinePlugin({
|
||||
|
||||
Reference in New Issue
Block a user