-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
don't work in production build #53
Comments
Got it, i will test the case as soon as possible |
I tested the production mode of the project created by vue-cli (webpack v4.28.4) is OK. But the production mode of vue-element-admin(webpack 4.16.5) is problematic. I guess it is a problem with webpack or some loaders, finally i found the root cause. The following is the source code fragment of the ncform-common package.
It is compiled into the following code in the vue-element-admin production mode.
This is the root cause. So the solution is to explicitly declare the widget as shown below
|
The safest solution is to upgrade webpack and related loaders, but I had no luck to do it successfully for vue-element-admin. |
great! |
I make fork from vue-element-admin and then add exampte from ncform-demo on dashboard.
When run "npm run dev" ncform work fine, but when run "npm run build" and deploy it doesn't work.
May be needs some special settings for webpack? I can't see some errors...
The text was updated successfully, but these errors were encountered: