From ca51372150853703c32e47540fe35ec311c53b9f Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 6 Jan 2018 17:21:40 -0800 Subject: [PATCH] Explicitly load style-loader/css-loader deps This appears to fix sveltejs/sapper-template#27 --- webpack/config.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/webpack/config.js b/webpack/config.js index e9248c030..ae0aed26c 100644 --- a/webpack/config.js +++ b/webpack/config.js @@ -6,7 +6,12 @@ module.exports = { client: { entry: () => { return { - main: entry.client + main: [ + entry.client, + // workaround for https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/456 + 'style-loader/lib/addStyles', + 'css-loader/lib/css-base' + ] }; }, @@ -36,4 +41,4 @@ module.exports = { }; } } -}; \ No newline at end of file +};