-
Notifications
You must be signed in to change notification settings - Fork 19
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
Improve documentation #12
Comments
Hey! Thanks for your suggestions. Feel free to send a PR 👍 |
I'm happy to help too as I stumbled a bit on not setting "setClasses: true". Without that I was not getting all css classes added for my tests. |
As I finished my minimal example for #13 I think I may share it as a reference for other WP Sage theme users. Here is my repo and specific example commit which adds modernizr-loader jmarceli/modernizr-loader-sage@f895441 What do you think? Should I modify README or place it in the Wiki or maybe leave it alone :) |
@flootr I'd like to add to the README to include the option of adding modernizr to an entry point in webpack.config.js if only used in CSS and therefore importing into modules isn't necessary. For those just using it for CSS this is far simpler and avoids an unused import or finding an arbitrary place to require Modernizr. // ...
entry: {
main: ['modernizr', './your/javascript/modules'],
},
// ... |
This sounds like an useful info for me but it should be somehow separated from base configuration in order not to mislead people. |
Ok why don't I do a pull request for what I've done and we can iterate in that? Sent from my iPhone
|
Go for it 👍 @stevegibbings |
@stevegibbings investigating further it is even easier to |
Yes I can see how that would work. Sent from my iPhone
|
Hi,
This is really useful project thanks for that. Anyway I would like to suggest some README improvements:
.modernizrrc
available options by linking https://github.com/Modernizr/Modernizr/blob/master/lib/config-all.json (like in https://www.npmjs.com/package/modernizr-webpack-plugin)require
andimport
code blocks should be placed after webpack.config example file with an information where you should writerequire
code (it should be written in your code not in the webpack.config which may not be so obvious)If you like this suggestions I may send a PR.
The text was updated successfully, but these errors were encountered: