-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
75 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@text-color: #798777; | ||
@green:#A2B29F; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,20 @@ | ||
const { defineConfig } = require('@vue/cli-service') | ||
module.exports = defineConfig({ | ||
transpileDependencies: true | ||
transpileDependencies: true, | ||
css: { | ||
loaderOptions: { | ||
less: { | ||
// 若 less-loader 版本小于 6.0,请移除 lessOptions 这一级,直接配置选项。 | ||
lessOptions: { | ||
modifyVars: { | ||
// 直接覆盖变量 | ||
'text-color': '#111', | ||
'border-color': '#eee', | ||
// 或者可以通过 less 文件覆盖(文件路径为绝对路径) | ||
hack: 'true; @import "@/style/base.less";' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}) |