vue add [plugin name] doesnt work
See original GitHub issueHi,
I had started using Vue/Cli v3.0 it looks awesome except it doesn’t work for 3rd party plugins e.g when I try to install webpack-obfuscator with
$ vue add webpack-obfuscator
I get following error.
Installing vue-cli-plugin-webpack-obfuscator...
npm ERR! code E404
npm ERR! 404 Not Found: vue-cli-plugin-webpack-obfuscator@latest
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
module.exports = {
configureWebpack: {
plugins: [
new JavaScriptObfuscator(
{
rotateUnicodeArray: true,
renameGlobals: true,
stringArray: true,
stringArrayEncoding: true,
stringArrayThreshold: 0.5,
target: "browser"
},
["static/js/vendor**", "static/js/manifest**"]
)
]
}
};
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
vue add vue-container
vue add vue-i18n
with few others but none of them seems to work.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Plugins and Presets - Vue CLI
vue add is specifically designed for installing and invoking Vue CLI plugins. It is not meant as a replacement for normal npm packages....
Read more >Vue.use(plugin) not invoking the `install` function
I am working on exporting my custom vue component as NPM module. I have followed steps mentioned in the official doc Packaging Vue...
Read more >Get started with Vuetify
This will start the Vue User Interface and open a new window in your browser. On the left side of your screen, click...
Read more >Plugins directory - Nuxt
The plugins directory contains your Javascript plugins that you want to run before instantiating the root Vue.js Application. This is the place to...
Read more >Getting Started - BootstrapVue
With npm npm install vue bootstrap bootstrap-vue # With yarn yarn add vue ... of each of the component and directive docs for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
vue add
is only for vue-cli plugins. For webpack plugins you still install them with npm or yarn…@erwin16 You have to add
var JavaScriptObfuscator = require('webpack-obfuscator');
before you useall plugins you installed with npm/yarn should work as expected.