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