|
|
@@ -5,8 +5,11 @@ const webpack = require("webpack"); |
|
|
|
const path = require("path"); |
|
|
|
|
|
|
|
module.exports = withPlugins([[withSass], [withImages]], { |
|
|
|
webpack(config, options) { |
|
|
|
config.resolve.modules.push(path.resolve("./")); |
|
|
|
return config; |
|
|
|
} |
|
|
|
webpack(config, { dev }) { |
|
|
|
if (dev) { |
|
|
|
config.devtool = "cheap-module-source-map"; |
|
|
|
} |
|
|
|
config.resolve.modules.push(path.resolve("./")); |
|
|
|
return config; |
|
|
|
}, |
|
|
|
}); |