Skip to content
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

Replaced Bootstrap with Materialize #65

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Replaced Bootstrap with Materialize #65

wants to merge 3 commits into from

Conversation

joaufi
Copy link

@joaufi joaufi commented Nov 24, 2016

Tried to get it working in a similar fashion as Bootstrap was loaded but had to do it a bit differently. Tested and works correctly.

From what I've researched there should be a way to make it so that it is fairly simple to switch between Bootstrap/Materialize/Foundation; however, I was unable to find a quick and easy way to do so.

- Also got Material Design Icons to load in
- Javascript is tested as working
@joaufi
Copy link
Author

joaufi commented Nov 25, 2016

Okay, still getting some weird errors after using it more thoroughly. Not quite ready to go. Closing for now.

@joaufi joaufi closed this Nov 25, 2016
joaufi added 2 commits November 26, 2016 14:09
Materialize-css npm package comes with it's own private
jquery, so we have to use an alias to change jquery to
point to the one we installed with npm install
see previous commit for explanation
@joaufi joaufi reopened this Nov 26, 2016
@joaufi
Copy link
Author

joaufi commented Nov 26, 2016

Okay, it is now working correctly. Apparently, materialize-css has jquery as a dependency in it's npm package so it comes with it's own private version of jquery. This causes problems as it does not point to the jquery we installed. Thus, I had to create an alias in webpack.js to point to our jquery.

See issues in Materialize repo for further information:
#Dogfalo/materialize#3676
#Dogfalo/materialize#3707

@tomscholz
Copy link

FYI since Dogfalo/materialize#4774 materialize shouldn't use the it's own bundled version of jQuery anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants