When swapping the mdl from the CDN with the Sass-Version according to these instructions components like the menu-button and the snackbar do no longer have styles.
Reason: uncss in the gulpfile deletes important css classes like .mdl-layout__drawer-button
Solution: Delete these lines in gulpfile.babel.js (96-102)
.pipe($.if('*.css', $.uncss({
html: [
'app/index.html'
],
// CSS Selectors for UnCSS to ignore
ignore: ['.mdl-layout__drawer-button', '.mdl-snackbar']
})))
It took me a while to figure it out. Maybe the docs (/docs/mdl-sass.md) should be updated.
When swapping the mdl from the CDN with the Sass-Version according to these instructions components like the menu-button and the snackbar do no longer have styles.
Reason: uncss in the gulpfile deletes important css classes like
.mdl-layout__drawer-button
Solution: Delete these lines in gulpfile.babel.js (96-102)
It took me a while to figure it out. Maybe the docs (/docs/mdl-sass.md) should be updated.