-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Error bundling with webpack on windows #342
Comments
A partial solution to the first issue, via https://clojuredocs.org/clojure.java.shell/sh#example-60754e7fe4b0b1e3652d74c5 Apparently on Windows, So if I change {:main dbn.frontend.core
:target :bundle
:bundle-cmd {:none ["powershell" "npx" "webpack"
"--mode=development"
"--entry" :output-to
"--output-path" :final-output-dir
"--output-filename" :final-output-filename]}
:output-dir "target/js/dbn-frontend"
:asset-path "js/dbn-frontend"} or {:main dbn.frontend.core
:target :bundle
:bundle-cmd {:none ["npx.cmd" "webpack"
"--mode=development"
"--entry" :output-to
"--output-path" :final-output-dir
"--output-filename" :final-output-filename]}
:output-dir "target/js/dbn-frontend"
:asset-path "js/dbn-frontend"} then the bundling command will at least run. The second problem then appears to happen because figwheel uses
that builds the bundle correctly. Interestingly, it seems like only the first separator needs to be
That kind of makes it seem like that issue is really Webpack's, for requiring that relative paths start with This means that to solve this, two things need to happen:
I'm not sure how to get either to happen while not breaking dev on other platforms. I could just modify |
When I try to bundle my code with Webpack on Windows, I'm getting the following error:
Something about how Figwheel is running
npx
is not working. It's present on my path:And I can run that command from the PS command-line, though it fails for different, webpack-related reasons:
My CLJS edn,
dbn-frontend.cljs.edn
:Is there something special I need to do to get figwheel-main to work with NPM / Webpack in Windows? The config I have works correctly on Mac / Linux.
The text was updated successfully, but these errors were encountered: