1
0
mirror of https://github.com/go-task/task.git synced 2025-05-13 22:16:31 +02:00
2025-04-22 14:25:32 +02:00

17 lines
345 B
JavaScript

const path = require('path');
module.exports = function webpackAliasPlugin(context, options) {
return {
name: 'webpack-alias-plugin',
configureWebpack(config, isServer, utils) {
return {
resolve: {
alias: {
'~': path.resolve(__dirname, '../../src'),
},
},
};
},
};
};