From 17e10572ea6dd25c3066af4a19ec32895b25d5cf Mon Sep 17 00:00:00 2001 From: Dominic Masters Date: Tue, 10 Jul 2018 17:36:50 +1000 Subject: [PATCH] Rewrote the compiler to better dump assets. --- private/server/WebpackCompilerOptions.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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' + } + }] }, {