Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jsconfig

// Create jsconfig.json in root

{
    "compilerOptions": {
        "baseUrl": "./",
        "paths": {
            "@components/*": ["components/*"],
            "@root/*": ["./*"]
        }
    }
}
Comment

jsconfig.json

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "$libs": ["src/libs"],
      "$libs/*": ["src/libs/*"],
    }
  },
  "include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"],
  "exclude": ["node_modules", "**/node_modules", "dist"]
}
Comment

jsconfig

const path = require('path');


module.exports = {
    resolve: {
        alias: {
            '@': path.resolve('resources/js'),
            '@Components': path.resolve('resources/js'/Components),
        },
    },
};
Comment

PREVIOUS NEXT
Code Example
Javascript :: string to html 
Javascript :: commonjs vs es6 
Javascript :: axios get error response message 
Javascript :: jquery if data attribute exists 
Javascript :: To append dropdown option using jquery 
Javascript :: vue watch object member 
Javascript :: how to upload file in material ui 
Javascript :: loopback upsert 
Javascript :: uuid timestamp for javascript 
Javascript :: node cron every 10 minutes 
Javascript :: moment js react 
Javascript :: settext javascript 
Javascript :: mongodb findOneAndUpdate return updated 
Javascript :: giving an html element own attribute using js 
Javascript :: union of two objects javascript 
Javascript :: internal/modules/cjs/loader.js:1122 
Javascript :: document.getElementByClass is not a function 
Javascript :: react router 
Javascript :: javascript detect if element is scrolled 
Javascript :: forach loop in javascript 
Javascript :: javascript backslash 
Javascript :: all inputs under div 
Javascript :: how to use static files in express with ejs 
Javascript :: jquery selector partial class name 
Javascript :: btn.addeventlistener 
Javascript :: gulp sequential tasks 
Javascript :: append object to object javascript 
Javascript :: get index of selected option javascript 
Javascript :: jquery ajax 500 error handling 
Javascript :: js find longest word in string function 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =