Skip to content

Commit 3f3c1fe

Browse files
committedAug 19, 2019
fix: resolve alias for utils folder for library webpack config
1 parent 5c0967b commit 3f3c1fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎config/webpack.lib.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ module.exports = {
1515
},
1616
resolve: {
1717
modules: ['node_modules'],
18-
extensions: ['.js', '.jsx']
18+
extensions: ['.js', '.jsx'],
19+
alias: {
20+
utils: path.join(project.path.src, 'utils')
21+
}
1922
},
2023
entry: {
2124
'react-middle-truncate': path.resolve(project.path.src, 'react-middle-truncate/index.js')

0 commit comments

Comments
 (0)
Please sign in to comment.