Created
July 20, 2018 15:07
-
-
Save akellbl4/fc4dc9f7fd611a77aa7b0cc293caabe7 to your computer and use it in GitHub Desktop.
Gatsby v2 absolute resolving from `src` folder without plugins
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
const path = require('path') | |
exports.onCreateWebpackConfig = ({ actions, getConfig }) => { | |
actions.setWebpackConfig({ | |
resolve: { | |
modules: [path.resolve(__dirname, 'src')], | |
}, | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment