all
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
const {defineConfig} = require('@vue/cli-service')
|
||||
module.exports = defineConfig({
|
||||
transpileDependencies: true,
|
||||
configureWebpack: {
|
||||
resolve: {extensions: [".ts", ".tsx", ".js", ".json"]},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.tsx?$/,
|
||||
loader: 'ts-loader',
|
||||
exclude: /node_modules/,
|
||||
options: {
|
||||
appendTsSuffixTo: [/\.vue$/],
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
devServer: {
|
||||
proxy: {
|
||||
|
||||
'/pdf': {
|
||||
target: 'https://szcb-core.oss-cn-chengdu.aliyuncs.com',
|
||||
changeOrigin: true,
|
||||
pathRewrite: {'^/pdf': ''}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user