On Saturday, April 19, 2014 11:08:18 AM UTC+2, Thomas Deutsch wrote: > For JS-Projetcs i use the webpack module bundler. > It is a fantastic tool, that will manage module dependencys and supports > "loaders", to implement modules for compile-to languages. > > Is is possible to use tools like Browserify or Webpack for clojurescript > development?
It is definitely possible to access js/require, but I don't know if bundling the cljsbuild JS into browserify/webpack would break the compiled JS (browserified code runs inside a closure to simulate a module). You could probably tell browserify to create your bundle with everything (or have an entry point requiring everything you need) and expose require to global (I think it does not do that by default) and in your page include first the bundle.js and then the clojurescript code, and assume that in clojurescript you are going to have defined require with all the bundled modules (thus being able to use js/require safely). It would be great if you get this to work and share it via github as a reference setup, since managing client side libraries with browserify/webpack and npm is really useful. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
