-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathgatsby-node.js
More file actions
19 lines (18 loc) · 772 Bytes
/
gatsby-node.js
File metadata and controls
19 lines (18 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const path = require('path');
exports.modifyWebpackConfig = ({config, stage}) => {
config.merge({
resolve: {
alias: {
'@src': path.resolve(__dirname, 'src'),
'@data': path.resolve(__dirname, 'src/data'),
'@utils': path.resolve(__dirname, 'src/utils'),
'@util-wrappers': path.resolve(__dirname, 'src/util-wrappers'),
'@atoms': path.resolve(__dirname, 'src/components/atoms'),
'@molecules': path.resolve(__dirname, 'src/components/molecules'),
'@pages': path.resolve(__dirname, 'src/components/pages'),
'@templates': path.resolve(__dirname, 'src/components/templates')
}
}
});
return config;
}