add path alias
This commit is contained in:
parent
a5085af86c
commit
210244f5b4
|
|
@ -6,7 +6,10 @@
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"declaration": false,
|
"declaration": false,
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"incremental": true
|
"incremental": true,
|
||||||
|
"paths": {
|
||||||
|
"@/*": ["./resources/assets/src/*"]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"resources/assets/src",
|
"resources/assets/src",
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
const path = require('path')
|
||||||
const webpack = require('webpack')
|
const webpack = require('webpack')
|
||||||
const VueLoaderPlugin = require('vue-loader/lib/plugin')
|
const VueLoaderPlugin = require('vue-loader/lib/plugin')
|
||||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
||||||
|
|
@ -115,6 +116,7 @@ const config = {
|
||||||
extensions: ['.js', '.ts', '.tsx', '.vue', '.json'],
|
extensions: ['.js', '.ts', '.tsx', '.vue', '.json'],
|
||||||
alias: {
|
alias: {
|
||||||
'react-dom': '@hot-loader/react-dom',
|
'react-dom': '@hot-loader/react-dom',
|
||||||
|
'@': path.resolve(__dirname, 'resources/assets/src'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
optimization: {
|
optimization: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user