Closed eliavmaman closed 8 years ago
Please check this article and this config with bundling
@JeroenVinke i still find it difficult to implement.
here is my skeleton project
the vendors folder contains all kendo file which failed to bundle.
This is my bundle.js
I've added the exclude section and declare the src/vendor folder to do not get bundle.
Any idea mate?
I would put the vendors folder outside of the src folder (link to instructions), then you need to make sure you have a this line in the paths
section of config.js:
"kendo-ui/*": "vendors/*"
You will probably need to change your app.html
as well so that it uses the kendo-ui
map:
<require from="kendo-ui/styles/kendo.common.min.css!"></require>
<require from="kendo-ui/styles/kendo.bootstrap.min.css!"></require>
Then you can add this bundle configuration and you probably don't need this anymore:
"excludes": [
"[src/vendors/**/*.js]"
]
10x man i'll try that
@JeroenVinke sorry for not reply yesterday, was struggled with the bundle issues. i did exactly what u said, i get this error now when i bundle. It's looks like the the jquery.min.map file in vendor folder cozing the issue..
have u seen that b4?
Nope, haven't seen that before. It's weird because it shouldn't be bundling .map files.What does your bundle config look like now? Also, if you don't mind you could also remove the .map files from the folder
remove the map files from vendor folder?
Yes
my bundle.js:
a couple of things:
jspm -v
)depCache
to false
"includes": ["kendo-ui/js/*"],
to "includes": ["kendo-ui/js/*.js"],
if you don't want to remove the .map
filesmy jspm v is 0.16.15
@JeroenVinke sorry for asking that, but i feel i quite misunderstood the integration between the config.js and bundle.js. when i first saw aurelia movie, it's sayed that we don't really need to touch it. but it seem that there is a lot to deal with the config files.
and i don't mind to to that ' it just i really want to understand the configuration of an aurelia project a bit more then JSPM install this and that. May b a good article or short explanation and i'll buy u a beer.
I dont know what to do...
now gulp bundle ,watch ,build they are all stuck after css
@eliavmaman keep an eye on https://github.com/aurelia-ui-toolkits/aurelia-kendoui-bridge/issues/534, hopefully that will help you out
@eliavmaman https://aurelia-ui-toolkits.gitbooks.io/kendoui-bridge-docs/content/app_developers_notes/bundlingstep_by_step_instructions_md.html should help you out, and if it still doesn't work then something is probably wrong in your setup
Hey, i m using the es6 skeleton and try to bundle all files now. i have a vendor folder that include all Kendo core files. When i type
gulp bundle
, i getgulp-notify: [Error running Gulp] Error: C:/projects/skeleton-es2016/src/vendors/js/kendo.all.min.js: Argument name clash in strict mode (76:3565)
.Should i change anything to make it work?