Last active
October 28, 2021 14:49
-
-
Save enpitsuLin/823a628242e6ea24be8ec306342ac043 to your computer and use it in GitHub Desktop.
gatsby alias
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.onCreateWebpackConfig = ({ actions }) => { | |
actions.setWebpackConfig({ | |
resolve: { | |
alias: { | |
// alias like webpack configuration | |
'@': path.join(__dirname, './src') | |
} | |
} | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment