mirror of
https://gitee.com/gz-yami/mall4v.git
synced 2025-12-26 07:16:27 +08:00
编译时去除eslint警告
This commit is contained in:
parent
75f198d8f4
commit
9f7d7195c2
@ -44,15 +44,14 @@ export default defineConfig(({ command })=> {
|
|||||||
resolvers: command === 'build' ? [ElementPlusResolver()] : [],
|
resolvers: command === 'build' ? [ElementPlusResolver()] : [],
|
||||||
dts: 'src/auto-import/components.d.ts'
|
dts: 'src/auto-import/components.d.ts'
|
||||||
}),
|
}),
|
||||||
// eslint
|
|
||||||
eslintPlugin({
|
|
||||||
include: ['src/**/*.js', 'src/**/*.vue', 'src/*.js', 'src/*.vue']
|
|
||||||
}),
|
|
||||||
// 对大于 1k 的文件进行压缩
|
// 对大于 1k 的文件进行压缩
|
||||||
viteCompression({
|
viteCompression({
|
||||||
threshold: 1000,
|
threshold: 1000,
|
||||||
})
|
})
|
||||||
],
|
].concat(
|
||||||
|
// eslint
|
||||||
|
command !== 'build' ? [eslintPlugin({ include: ['src/**/*.js', 'src/**/*.vue', 'src/*.js', 'src/*.vue'] })] : []
|
||||||
|
),
|
||||||
server: {
|
server: {
|
||||||
host: true,
|
host: true,
|
||||||
port: 9527,
|
port: 9527,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user