From 8419057c04087fc1acb1daeb3089c6122376bce8 Mon Sep 17 00:00:00 2001 From: Nick Marsh Date: Mon, 5 Dec 2016 08:55:38 +1000 Subject: [PATCH] Use webpack tilde syntax for loading CSS from node_modules folder --- src/styles.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/styles.scss b/src/styles.scss index 87927d0..a15b153 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -1,8 +1,8 @@ /* You can add global styles to this file, and also import other style files */ -@import "../node_modules/materialize-css/sass/components/color"; /* This must be included to use the included variables and the color function */ +@import "~materialize-css/sass/components/color"; /* This must be included to use the included variables and the color function */ $primary-color: color("indigo", "base"); $secondary-color: color("blue", "lighten-1"); -$roboto-font-path: "../node_modules/materialize-css/fonts/roboto/"; /* This is needed so the materialize.scss file can load the font */ -@import "../node_modules/materialize-css/sass/materialize"; +$roboto-font-path: "~materialize-css/fonts/roboto/"; /* This is needed so the materialize.scss file can load the font */ +@import "~materialize-css/sass/materialize";