Skip to content

Commit 2565741

Browse files
authored
Merge pull request #2 from bonnici/master
Use webpack tilde syntax for loading CSS from node_modules folder
2 parents 29bf94b + 8419057 commit 2565741

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/styles.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* You can add global styles to this file, and also import other style files */
22

3-
@import "../node_modules/materialize-css/sass/components/color"; /* This must be included to use the included variables and the color function */
3+
@import "~materialize-css/sass/components/color"; /* This must be included to use the included variables and the color function */
44
$primary-color: color("indigo", "base");
55
$secondary-color: color("blue", "lighten-1");
66

7-
$roboto-font-path: "../node_modules/materialize-css/fonts/roboto/"; /* This is needed so the materialize.scss file can load the font */
8-
@import "../node_modules/materialize-css/sass/materialize";
7+
$roboto-font-path: "~materialize-css/fonts/roboto/"; /* This is needed so the materialize.scss file can load the font */
8+
@import "~materialize-css/sass/materialize";

0 commit comments

Comments
 (0)