mirror of
https://github.com/go-task/task.git
synced 2025-05-13 22:16:31 +02:00
17 lines
345 B
JavaScript
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'),
|
|
},
|
|
},
|
|
};
|
|
},
|
|
};
|
|
};
|