materialize-clockpicker icon indicating copy to clipboard operation
materialize-clockpicker copied to clipboard

Webpack & Sass compiler

Open suarezph opened this issue 9 years ago • 2 comments

Sass has a problem when compiling it.

@import "Materialize/sass/components/mixins"; not found ---> when I checked the code in node_modules the materialize components is not there it is lacking..

Webpack has a problem when imported it.

Cannot resolve the file which I cannot see also the .JS file.

suarezph avatar Oct 21 '16 08:10 suarezph

screen shot 2016-10-23 at 11 59 27 pm

seems this file is not there

suarezph avatar Oct 23 '16 16:10 suarezph

Use this in your styles.scss:

$roboto-font-path: "../../node_modules/materialize-css/fonts/roboto/";
@import "~materialize-css/sass/materialize.scss";
@import "~materialize-clockpicker/src/sass/components/variables";
@import "~materialize-clockpicker/src/sass/components/primary";
@import "~materialize-clockpicker/src/sass/components/dark";

You need to npm install materialize-css materialize-clockpicker prior to that.

IlyaSemenov avatar Dec 29 '16 11:12 IlyaSemenov