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

Re : config of new steal

$
0
0
thx!

I thought I got this branch, but I had to

  1. bower install https://github.com/bitovi/canjs.git#system-steal-domless
which worked.

Do I need
  1. import $ from "jquery";

due to the fact, that canjs steals it anyway?

It seems working without import, my main.js is simply

  1. steal('core/init', function(Init){
  2.     new Init($('body'));
  3.     })


When I use this main.js

  1. import $ from "jquery";
  2. import Init from 'core/init/init';
  3. new Init($('body'));

it seems to work, too, but bower_components/jquery/dist/jquery.jis loaded  twice. I assume once by import and once by steal.

And:

  1. paths: {
  2.       jquery: "bower_components/jquery/dist/jquery.js"
  3.   }

throws

  1. jquery/jquery.js 404 not found

while

  1. paths: {
  2.       'jquery/*': "bower_components/jquery/dist/*.js"
  3.   }

works.


Viewing all articles
Browse latest Browse all 3491

Trending Articles