1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Use object directly since webpack doesn’t parse the string (#4140)

This commit is contained in:
Tim Neutkens 2018-04-14 10:18:41 +02:00 committed by GitHub
parent 676d82abf9
commit 05b7286454
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,7 +142,7 @@ export default async function getBaseWebpackConfig (dir, {dev = false, isServer
strictModuleExceptionHandling: true,
devtoolModuleFilenameTemplate (info) {
if (dev) {
return '[absolute-resource-path]'
return info.absoluteResourcePath
}
return `${info.absoluteResourcePath.replace(dir, '.').replace(nextDir, './node_modules/next')}`