Skip to content

Use webpack tilde syntax for loading CSS from node_modules folder #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 8, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/styles.scss
Original file line number Diff line number Diff line change
@@ -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";