You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spring-boot-online-exam/frontend/webstorm.config.js

23 lines
463 B

4 months ago
'use strict'
// 引入path模块
4 months ago
const path = require('path')
// 定义resolve函数用于拼接路径
4 months ago
function resolve (dir) {
return path.join(__dirname, '.', dir)
}
// 导出配置对象
4 months ago
module.exports = {
// 设置上下文路径
4 months ago
context: path.resolve(__dirname, './'),
// 设置解析规则
4 months ago
resolve: {
// 设置文件后缀名
4 months ago
extensions: ['.js', '.vue', '.json'],
// 设置别名
4 months ago
alias: {
'@': resolve('src')
}
}
}