From 235a3dad927d959ba4d49230970f6a1840641dc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Tue, 17 Apr 2018 23:07:12 +0200 Subject: [PATCH] Quick-fix tooltips not being loaded by Webpack --- client/css/style.css | 1 - client/index.html.tpl | 2 ++ webpack.config.js | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/client/css/style.css b/client/css/style.css index 3be8fbb4..46ea4934 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -1,6 +1,5 @@ @import "fontawesome.css"; @import "bootstrap.css"; -@import "../../node_modules/primer-tooltips/build/build.css"; :root { /* Links and link-looking buttons */ diff --git a/client/index.html.tpl b/client/index.html.tpl index be00c67e..348a168c 100644 --- a/client/index.html.tpl +++ b/client/index.html.tpl @@ -7,6 +7,8 @@ + + <% _.forEach(stylesheets, function(css) { %> diff --git a/webpack.config.js b/webpack.config.js index 0771f8de..f45126f6 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -114,6 +114,10 @@ const config = { from: "./client/themes/*", to: "themes/[name].[ext]", }, + { + from: "./node_modules/primer-tooltips/build/build.css", + to: "css/primer-tooltips.[ext]", + }, ]), // socket.io uses debug, we don't need it new webpack.NormalModuleReplacementPlugin(/debug/, path.resolve(__dirname, "scripts/noop.js")),