When attempting to integrate materialize into my project, I encountered an issue while trying to add:
"./node_modules/materialize-css/dist/js/materialize.js"
and
"./node_modules/materialize-css/sass/materialize.scss",
to webpack.config.json.
Upon building the project, I received the following error (among others):
ERROR in ./~/css-loader?{"sourceMap":false,"importLoaders":1}!./~/postcss-loader?{"ident":"postcss"}!./~/sass-loader/lib/loader.js?{"sourceMap":false,"precision":8,"includePaths":[]}!./~/materialize-css/sass/materialize.scss
Module not found: Error: Can't resolve '../fonts/roboto/Roboto-Thin.woff2' in 'C:\Users\Administrateur\Documents\dev\git\front-ptc-angular\node_modules\materialize-css\sass'
@ ./~/css-loader?{"sourceMap":false,"importLoaders":1}!./~/postcss-loader?{"ident":"postcss"}!./~/sass-loader/lib/loader.js?{"sourceMap":false,"precision":8,"includePaths":[]}!./~/materialize-css/sass/materialize.scss 6:77358-77402
@ ./~/materialize-css/sass/materialize.scss
@ multi ./~/materialize-css/sass/materialize.scss ./src/assets/scss/main.scss
Any thoughts on how to solve this?
UPDATE:
I installed angular2-materialize and materialize-css via npm,
then included the mentioned lines in my webpack configuration.