chingyawhao / materialize-clockpicker

A materialize clockpicker, demo on
http://chingyawhao.github.io/materialize-clockpicker.html
MIT License
142 stars 70 forks source link

Webpack & Sass compiler #24

Open suarezph opened 7 years ago

suarezph commented 7 years ago

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 commented 7 years ago
screen shot 2016-10-23 at 11 59 27 pm

seems this file is not there

IlyaSemenov commented 7 years ago

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.