Q141. What are custom blocks?
You can define custom language blocks inside *.vue files based on the `lang` attribute of the block, the block's tag name, and the rules in your webpack config. You can a...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (251 available).
You can define custom language blocks inside *.vue files based on the `lang` attribute of the block, the block's tag name, and the rules in your webpack config. You can a...
Below are the list of major stylelint features 1. It has more than **160 built-in rules** to catch errors, apply limits and enforce stylistic conventions 2. Understands *...
Vuex enforces below rules to structure any application. 1. Application-level state is centralized in the store. 2. The only way to mutate the state is by committing mutat...
Yes, vuex supports hot-reloading for mutations, modules, actions and getters during development. You need to use either webpack's hot module replacement API or browserify...
The store.hotUpdate() API method is used for mutations and modules. For example, you need to configure vuex store as below, ```javascript // store.js import Vue from 'vue...
Since mutations are just functions that completely rely on their arguments it will be easier to test. You need to keep mutations inside your store.js file and should also...
It is easier to test getters similar to mutations. It is recommended to test these getters if they have complicated computation. Let's take a simple todo filter as a gett...
By proper mocking, you can bundle tests with webpack and run them on node without having depenceny on Browser API. It involves 2 steps, 1. **Create webpack config:** Crea...
Below are the steps to run tests in real browser, 1. Install `mocha-loader`. 2. Configure webpack config entry point to 'mocha-loader!babel-loader!./test.js'. 3. Start we...
In strict mode, whenever Vuex state is mutated outside of mutation handlers, an error will be thrown. It make sure that all state mutations can be explicitly tracked by d...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.