From 3f3c1fed5d55d4db11929dd2fe63f98170357818 Mon Sep 17 00:00:00 2001 From: Matt Fairbrass Date: Mon, 19 Aug 2019 13:53:57 +1000 Subject: [PATCH] fix: resolve alias for utils folder for library webpack config --- config/webpack.lib.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/webpack.lib.config.js b/config/webpack.lib.config.js index 0529b0b..c1aad17 100644 --- a/config/webpack.lib.config.js +++ b/config/webpack.lib.config.js @@ -15,7 +15,10 @@ module.exports = { }, resolve: { modules: ['node_modules'], - extensions: ['.js', '.jsx'] + extensions: ['.js', '.jsx'], + alias: { + utils: path.join(project.path.src, 'utils') + } }, entry: { 'react-middle-truncate': path.resolve(project.path.src, 'react-middle-truncate/index.js')