adds a postinstall script executing node node_modules/requirejs/bin/r.js -o tools/rbuild.js
adds another post-script, running after the scripts mentioned in the previous line, running au prepare-materialize
adds a new task prepare-materialize to aurelia-cli tasks, copying fonts to a folder on project root and copying materialize.min.css to another folder in project root
The last item in this list ensures that the fonts are loaded from the correct path. Since font files are referenced as relative paths in materialize.min.css as ../fonts/<file> this structure is necessary to ensure fonts are found by the server where they are expected.
These styles are now loaded from index.html instead of calling <require> in app.html so requirejs does not try to load it from a bundle.
Prepares Materialize after
npm install
:node node_modules/requirejs/bin/r.js -o tools/rbuild.js
au prepare-materialize
prepare-materialize
to aurelia-cli tasks, copying fonts to a folder on project root and copyingmaterialize.min.css
to another folder in project rootThe last item in this list ensures that the fonts are loaded from the correct path. Since font files are referenced as relative paths in
materialize.min.css
as../fonts/<file>
this structure is necessary to ensure fonts are found by the server where they are expected.These styles are now loaded from
index.html
instead of calling<require>
inapp.html
so requirejs does not try to load it from a bundle.