-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add AMD support #5306
Comments
Related: #634 |
@tomscholz Also in the feature board no issue about AMD even though I think this is a priority: https://github.com/Dogfalo/materialize/projects/3 |
It would be really nice to have an AMD support out of the box. The best solution I'm aware of is to transform original source files with method described here: Unfortunately it won't work with v0.100.2 due to a change in Materialize's loading order but it works with v0.100.1. |
@tdamir
I think materialize needs a complete rewrite if we aim to support AMD. |
The support way to use Materialize with webpack is either by adding import Materialize from 'materialize-css';
// OR
require('materialize-css'); or by adding Materialize as a plugin in the config plugins: [
new webpack.ProvidePlugin({
Materialize: "materialize-css"
})
] |
@Dogfalo |
When will materialize support AMD? Many modern apps use AMD loaders like RequireJs, WebPack etc..
but at the moment this generates this note:
If I remove shim => velocity I get Velocity not defined.
There were some works to make Materialize AMD but I think the projets were abandoned:
#653
https://github.com/noodny/materializecss-amd
The text was updated successfully, but these errors were encountered: