antv-l7/.storybook/webpack.config.js

47 lines
920 B
JavaScript
Raw Normal View History

const path = require("path");
module.exports = ({ config }) => {
2019-12-07 01:43:18 +08:00
// config.module.rules.push({
// test: /\.glsl$/,
// loader: 'raw-loader'
// });
// config.module.rules.push({
// test: /\.worker\.(js|ts)$/,
// use: {
// loader: 'worker-loader',
// options: { inline: true, fallback: false }
// }
// });
2020-05-03 19:58:17 +08:00
config.module.rules =[];
config.module.rules.push(
{
test: /\.(ts|tsx)$/,
loader: require.resolve('awesome-typescript-loader'),
2020-05-03 19:58:17 +08:00
});
2020-05-03 19:58:17 +08:00
config.module.rules.push(
{
test: /.css$/,
use: ["style-loader", "css-loader", 'sass-loader'],
enforce: 'pre',
},
2020-01-20 12:14:49 +08:00
{
test: /\.stories\.svg$/,
loader: 'svg-inline-loader'
}
);
2020-10-08 23:24:08 +08:00
// config.resolve.alias = {
// '@antv/l7-district': path.resolve(__dirname, '../packages/boundary/src'),
// }
2020-05-03 19:58:17 +08:00
config.resolve.extensions.push('.ts', '.tsx', 'css', '.js', '.glsl');
return config;
};