-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Feat add command #936
Feat add command #936
Conversation
Hi, I get following error.
I thought it might be this package doesn't exist in NPM but when I install with NPM install webpack-obfuscator it does install the plugin to node_modules. Even though I installed it with NPM I am not able to invoke the plugin using vue.config.js. my config looks like
I am struggling to install 3rd party plugins in VUE project. Please suggest how can I use 3rd party plugins. I had read documentation carefully but the provided guide lines doesn't work for me. I tried
with few others but none of them seems to work. |
vue-cli commands only work with vue-cli plugins, but not with generic npm packages. |
@Akryum is there a way to use NPM packages with configured webpack? I searched on google but I am not able to find any thread that is using vue/cli 3.0 vue.config.js to configure/add plugins to webpack. By they way I think vue-container and vue-i18n is VUE plugin. One more thing from where I can find supported plugins for vue/cli 3 ? Thanks |
@riyasat And also, You can add the new category to |
@kazupon it means only new plugins will be supported that are converted to vue-cli-plugin... in my opinion this might be big hurdle for new developers like me to find compatible plugins but eventually everyone will catch-up. |
@riyasat There is a difference between a vue plugin and a vue-cli plugin. 😉 To use a regular Vue plugin, just install it using npm/yarn and import it manually into your sources files and write the |
@Akryum Thanks for the clarification :). Though I had tried extending webpack configuration as mentioned in the documentation none of them is working for me as I mentioned earlier for webpack-obfuscator.
I got following error
and if I use merge option then I got same error. Therefore I am thinking there is something wrong... |
It seems you forgot to import the module: const JavaScriptObfuscator = require('webpack-obfuscator')
module.exports = {
configureWebpack: {
// ...
}
} |
@Akryum I tried that but then npm run serve get stuck at serving.... Thanks |
Fix #844
Adds a new
vue add
command which works likevue invoke
except it automatically adds and install the plugin package in devDependencies.