antv-l7/gatsby-node.js

17 lines
745 B
JavaScript

const path = require('path');
exports.onCreateWebpackConfig = ({ getConfig }) => {
const config = getConfig();
config.resolve.extensions.push('.glsl');
config.resolve.alias = {
...config.resolve.alias,
'@l7/core': path.resolve(__dirname, 'packages/core/src'),
'@l7/component': path.resolve(__dirname, 'packages/component/src'),
'@l7/layers': path.resolve(__dirname, 'packages/layers/src'),
'@l7/maps': path.resolve(__dirname, 'packages/maps/src'),
'@l7/renderer': path.resolve(__dirname, 'packages/renderer/src'),
'@l7/scene': path.resolve(__dirname, 'packages/scene/src'),
'@l7/source': path.resolve(__dirname, 'packages/source/src'),
'@l7/utils': path.resolve(__dirname, 'packages/utils/src')
};
};