MCPcopy Create free account
hub / github.com/emwalker/digraph / modifyWebpackConfig

Function modifyWebpackConfig

client/razzle.config.js:6–16  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

4
5module.exports = {
6 modifyWebpackConfig(opts) {
7 const config = Object.assign({}, opts.webpackConfig);
8
9 config.resolve.alias = {
10 components: path.resolve(__dirname, './src/components'),
11 mutations: path.resolve(__dirname, './src/mutations'),
12 utils: path.resolve(__dirname, './src/utils'),
13 };
14
15 return config;
16 },
17
18 plugins: [
19 'scss'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected