1. webstorm-disable-index
auto disable webstorm index for node_modules
webstorm-disable-index
Package: webstorm-disable-index
Created by: coolme200
Last modified: Wed, 29 Jun 2022 00:32:15 GMT
Version: 1.2.0
License: MIT
Downloads: 5,095
Repository: https://github.com/coolme200/webstorm-disable-index

Install

npm install webstorm-disable-index
yarn add webstorm-disable-index

webstorm-disable-index

Init default webstorm config.

usage:

// package.json
"devDependencies": {
  "webstorm-disable-index": "1"
},
"config": {
  "webstorm": {
    // ignore the whole node_modules, but add these as lib
    "index": ["egg", "egg-init"]
  }
}

usage2: support sub modules

// support casade modules parse

Supposing below webstorm project case:

 |--- package.json (root)
|--- node-server
  |-- package.json
|--- static-server
  |-- package.json
|--- static-server2
  |-- package.json

You just add dependencies in root package.json, and then all sub modules's node_modules are disabled from the whole project

// package.json
"devDependencies": {
  "webstorm-disable-index": "1"
},
"config": {
  "webstorm": {
    "modules": ["node-server", "static-server", "static-server2"]
  }
}

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin