mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
* 更新Dockerfile构建文件,升级NodeJS依赖版本。 * 遵循ESLint重新格式化代码,修复部分警告 * 登录Token失效增加登出提示 * 网络请求问题增加错误错误提示 * 升级UI依赖库
35 lines
638 B
Go
35 lines
638 B
Go
'use strict'
|
|
const path = require('path')
|
|
|
|
function resolve(dir) {
|
|
return path.join(__dirname, dir)
|
|
}
|
|
|
|
const isDev = process.env.NODE_ENV === 'development'
|
|
module.exports = {
|
|
// TODO: need to configure output static files with hash
|
|
lintOnSave: isDev,
|
|
|
|
productionSourceMap: false,
|
|
|
|
configureWebpack: {
|
|
// provide the app's title in webpack's name field, so that
|
|
// it can be accessed in index.html to inject the correct title.
|
|
// name: name,
|
|
devtool: 'source-map',
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve('src')
|
|
}
|
|
}
|
|
},
|
|
|
|
chainWebpack: config => {
|
|
|
|
},
|
|
|
|
css: {
|
|
sourceMap: true
|
|
}
|
|
}
|