diff --git a/server/build/webpack.js b/server/build/webpack.js index ffa44797..3de0ac79 100644 --- a/server/build/webpack.js +++ b/server/build/webpack.js @@ -1,5 +1,6 @@ import { resolve, join, sep } from 'path' import { createHash } from 'crypto' +import { realpathSync } from 'fs' import webpack from 'webpack' import glob from 'glob-promise' import WriteFilePlugin from 'write-file-webpack-plugin' @@ -28,7 +29,7 @@ const interpolateNames = new Map(defaultPages.map((p) => { const relativeResolve = rootModuleRelativePath(require) export default async function createCompiler (dir, { buildId, dev = false, quiet = false, buildDir, conf = null } = {}) { - dir = resolve(dir) + dir = realpathSync(resolve(dir)) const config = getConfig(dir, conf) const defaultEntries = dev ? [ join(__dirname, '..', '..', 'client', 'webpack-hot-middleware-client'),