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

Basic webpack setup #176

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

Basic webpack setup #176

wants to merge 9 commits into from

Conversation

pgerochi
Copy link
Member

  • basic version of webpack.
  • I need a few suggestion here, this is only the bare bones of what should be in webpack. Right now it: compiles css, minifies js. Anyone else have a suggestion on what we can add? @oriSomething

@pgerochi pgerochi changed the title ** PLEASE DO NOT MERGE YET ** Basic webpack setup ** PLEASE DO NOT MERGE YET ** Oct 19, 2017
@@ -115,30 +115,27 @@
}
],
"scripts": {
"modernizr": "gulp modernizr"
"modernizr": "cd node_modules/modernizr && ./bin/modernizr -c lib/config-all.json && mv ./modernizr.js ../../src/js/lib/modernizr.js",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regression to Issue #174 . modernizr script should handled by webpack rather than shell script to prevent OS incompatibilities

@pgerochi pgerochi changed the title Basic webpack setup ** PLEASE DO NOT MERGE YET ** Basic webpack setup Oct 20, 2017
@pgerochi
Copy link
Member Author

pgerochi commented Oct 21, 2017

@lregla - are you comfortable with this pull request to merge?

@lregla
Copy link
Contributor

lregla commented Oct 23, 2017

@pgerochi I would like to do some further testing on one of the sites I have in production using this theme. I wouldn't be able to get to that until later in the week given my current schedule.

@chancesmith
Copy link

Subscribing :)

@chancesmith
Copy link

I might just not understand the blend of Webpack with WP, but...
Would this make wp_enqueue_script()-ing each script unessesary in functions.php?

@pgerochi
Copy link
Member Author

pgerochi commented Dec 5, 2017

@chancesmith yes you're right. i'm currently testing this out for a project and i found that i've taken wp_enqueue_script() out . one other thing is that I haven't set up relative image links in css with webpack on this branch. If you'd like to help out, please feel free.

@oriSomething oriSomething removed their assignment Feb 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants