-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q: MVC: include jsvascript as module #21679
Comments
hi You can create a new npm package and a
{
"version": "1.0.0",
"name": "yourmodulename/devextreme-aspnet-data-nojquery",
"publishConfig": {
"access": "public"
},
"dependencies": {
"@abp/core": "~9.0.2",
"devextreme-aspnet-data-nojquery": "~5.0.0"
}
//...
}
module.exports = {
mappings: {
"@node_modules/devextreme-aspnet-data-nojquery/*.*": "@libs/yourmodulename/devextreme-aspnet-data-nojquery/"
}
} [DependsOn(typeof(CoreScriptContributor))]
public class YourModuleNameDevextremeScriptContributor : BundleContributor
{
public override void ConfigureBundle(BundleConfigurationContext context)
{
context.Files.AddIfNotContains("/libs/yourmodulename/devextreme-aspnet-data-nojquery/index.js");
}
} Add your npm package to Run the See: https://github.com/abpframework/abp/tree/dev/npm/packs/signalr |
I'll try @maliming. |
If the |
For MVC project, how to properlja import
devextreme-aspnet-data-nojquery
library inside abp.resourcemapping.js and initialized in .cshtml?Error in javascript console: Uncaught This script should be used with an AMD or CommonJS loader
I know that MVC project includes jQuery, but I prefer not using if possible.
Thank you.
The text was updated successfully, but these errors were encountered: