Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Incorporating canjs in a gulp project using npm

$
0
0
Hi

I have a project that I build using gulp and I get all my dependencies using npm. I was very happy to see that canjs was available on npm as well. However - when I installed it, the can.jquery.js in the dist folder differs from the downloaded one. I am using browserify and I though the only way to include can.js was to use browserify-shim and include the dist build. However.. when looking into the package.json I see a reference to browserify, and that the main can.js file actually has a modules.export (commonjs?). Could I perhaps actually use browserify right of the bat somehow?

Viewing all articles
Browse latest Browse all 3491

Trending Articles