-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
Webpack in windows #58
Comments
Hi @codingluke, Using There is a You need to write something like this: task webpack(type: NpxTask, dependsOn: 'npmInstall') {
command = 'webpack'
} Hope this will help you! |
Hi @bsautel You are genius! It works like a charm locally and also on jenkins. Hopefully it will work for my windows colleges as well. We will see later. Thanks for your help! |
@bsautel just for your information. As I declare webpack in the package.json a task webpack(type: NpmTask, dependsOn: 'npmInstall') {
args = ['run', 'webpack' ]
} |
What you did also works, but requires to declare the command in the You are right, the
No worry, it is actively maintained. See the npx announcement blog post and the It sounds like the issue you are talking about is about an old version of Note that the gradle-node-plugin has some integration tests for |
Propably you are right, when they deliver it with npm they should care about. The original repo is archived because it is moved to an official npm repo https://github.com/npm/npx. But there it is also not really active (and the windows issue is not fixed). Anyway, I am very glad the gradle-node-plugin is actively developed and it works for me. |
Dear all,
first of all, this is a very nice project! THX you all for your work!
I successfully added webpack to the build process with the following task
now we also have some windows programmers on board, for them the
node_modules/.bin/webpack
is not working, we have to takenode_modules/.bin/webpack.cmd
. However, the NodeTask is not able to use run a.cmd
file.We managed to get it working with
however, as is is not a
NodeTask
node has to be locally installed. does anybody has an idea how to get it working on windows, without they have to install node globally too?best Lukas
The text was updated successfully, but these errors were encountered: