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

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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