如何配置Syncfusion JavaScript以通過Aurelia CLI與Aurelia配合使用?如何使用Aurelia CLI安裝和配置Syncfusion JavaScript?
這裏是JSPM使用時Syncfusion JavaScript的配置方式(通過http://aurelia-ui-toolkits.github.io/demo-syncfusion/#/installation):
Open config.js and add a couple of path mappings:
paths: {
"*": "src/*",
"github:*": "jspm_packages/github/*",
"npm:*": "jspm_packages/npm/*",
"common/ej.*": "jspm_packages/github/syncfusion/[email protected]/scripts/ej/common/ej.*.js", <----
"datavisualization/ej.*": "jspm_packages/github/syncfusion/[email protected]/scripts/ej/datavisualization/ej.*.js", <----
"ej.*": "jspm_packages/github/syncfusion/[email protected]/scripts/ej/web/ej.*.js", <----
"syncfusion-javascript/*": "jspm_packages/github/syncfusion/[email protected]/*" <----
},
"map": {
"aurelia-bootstrapper": "npm:[email protected]",
"aurelia-fetch-client": "npm:[email protected]",
"aurelia-framework": "npm:[email protected]",
"jquery": "npm:[email protected]", <----
"jquery.min": "npm:[email protected]", <----
"jquery-easing": "npm:[email protected]", <----
"jquery-validation": "npm:[email protected]", <----
"jquery-validation-unobtrusive": "npm:[email protected]", <----
"jsrender": "npm:[email protected]", <----
}
謝謝,安德魯。 –
請參考https://github.com/aurelia-ui-toolkits/aurelia-syncfusion-bridge/issues/43獲取Aurelia-CLI支持「aurelia-syncfusion-bridge」的鏈接。有關更多幫助,請聯繫[email protected] – Karthick