diff --git a/private/server/WebpackCompilerOptions.js b/private/server/WebpackCompilerOptions.js index 26a2ef2..6f1dcb7 100644 --- a/private/server/WebpackCompilerOptions.js +++ b/private/server/WebpackCompilerOptions.js @@ -79,7 +79,13 @@ module.exports = function(server, app) { { test: /\.jpe?g$|\.gif$|\.png$|\.svg|\.webm|\.mp4$/i, - loader: "file-loader?name=[path][name].[ext]" + use: [{ + loader: "file-loader", + options: { + name: "[path][name].[ext]", + context: 'public' + } + }] }, {