mirror of
https://github.com/ruilisi/fortune-sheet.git
synced 2025-01-07 03:16:50 +08:00
12 lines
348 B
JavaScript
12 lines
348 B
JavaScript
const path = require('path');
|
|
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
|
|
|
|
module.exports = ({ config }) => {
|
|
config.resolve.plugins = config.resolve.plugins || [];
|
|
config.resolve.plugins.push(
|
|
new TsconfigPathsPlugin({
|
|
configFile: path.resolve(__dirname, "../tsconfig.json"),
|
|
})
|
|
);
|
|
return config;
|
|
}; |