dune + webpack integration #147
ulrikstrid
started this conversation in
Show and tell
Replies: 2 comments 2 replies
-
Thanks @ulrikstrid. That's sweet. Would you like to add it to the template: https://github.com/ml-in-barcelona/jsoo-react-template? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Running both processes separately I often get an error from webpack just after saving a ml file. Since dune dumps and generates the bc.js each time. Does your rule fix that issue? (Maybe since it's a deps?) Just curiosity! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I got dune to run webpack for me with this setup, mainly posting it here if someone else finds it interesting/useful. Not that you will need webpack(-cli) in your path to make this work.
webpack.config.js
dune
(rule (target Index.js) (deps app.bc.js) (action (progn (run webpack --mode=production --env.deps=%{deps} --env.output=%{target}))))
Beta Was this translation helpful? Give feedback.
All reactions