From b536754cb43cbef70387d15304a681b2da36b87c Mon Sep 17 00:00:00 2001 From: sorrycc Date: Tue, 14 Aug 2018 17:36:20 +0800 Subject: [PATCH] Revert "alias is not needed, use @/ for src directory instead" This reverts commit 84fab59c5a66828a6ccf1176796e508af47701da. --- config/config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/config.js b/config/config.js index 2e412705..766780e5 100644 --- a/config/config.js +++ b/config/config.js @@ -42,6 +42,12 @@ export default { '@antv/data-set': 'DataSet', rollbar: 'rollbar', }, + alias: { + components: path.resolve(__dirname, '../src/components/'), + utils: path.resolve(__dirname, '../src/utils/'), + assets: path.resolve(__dirname, '../src/assets/'), + common: path.resolve(__dirname, '../src/common/'), + }, ignoreMomentLocale: true, lessLoaderOptions: { javascriptEnabled: true, -- GitLab