Skip to content

Commit

Permalink
Going deeper
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Jul 25, 2017
1 parent 2643fca commit 1a6647c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions superset/assets/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ const APP_DIR = path.resolve(__dirname, './');
const BUILD_DIR = path.resolve(__dirname, './dist');

const config = {
node: {
fs: 'empty',
},
entry: {
'css-theme': APP_DIR + '/javascripts/css-theme.js',
common: APP_DIR + '/javascripts/common.js',
Expand All @@ -32,9 +35,7 @@ const config = {
],
alias: {
webworkify: 'webworkify-webpack',
'mapbox-gl/js/geo/transform': path.join(
__dirname, '/node_modules/mapbox-gl/js/geo/transform'),
'mapbox-gl': path.join(__dirname, '/node_modules/mapbox-gl/dist/mapbox-gl.js'),
'mapbox-gl$': path.join(__dirname, '/node_modules/mapbox-gl/dist/mapbox-gl.js'),
},

},
Expand All @@ -57,10 +58,10 @@ const config = {
],
},
},
/* for react-map-gl overlays */
/* for mapbox-gl/js/geo/transform */
{
test: /\.react\.js$/,
include: APP_DIR + '/node_modules/react-map-gl/src/overlays',
test: /\.js$/,
include: APP_DIR + '/node_modules/mapbox-gl/js',
loader: 'babel-loader',
},
/* for require('*.css') */
Expand Down

0 comments on commit 1a6647c

Please sign in to comment.