mirror of https://gitee.com/antv-l7/antv-l7
18 lines
805 B
JavaScript
18 lines
805 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'),
|
|
'@antv/l7': path.resolve(__dirname, 'packages/l7/src')
|
|
};
|
|
};
|