1 Star 0 Fork 1

刘智勇/vue2基于vant组件的移动端头条新闻项目

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vue.config.js 722 Bytes
一键复制 编辑 原始数据 按行查看 历史
shenjiudong 提交于 2022-10-02 15:48 +08:00 . sjd first vue project
const { defineConfig } = require('@vue/cli-service')
const path = require('path')
const themePath = path.join(__dirname, './src/theme.less')
module.exports = defineConfig({
transpileDependencies: true,
css: {
loaderOptions: {
less: {
// 若 less-loader 版本小于 6.0,请移除 lessOptions 这一级,直接配置选项。
lessOptions: {
modifyVars: {
// 直接覆盖变量
'text-color': '#111',
'border-color': '#eee',
// 或者可以通过 less 文件覆盖(文件路径为绝对路径)
hack: `true; @import "${themePath}";`
}
}
}
}
},
publicPath: './' // 打包需要加入
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liu-zhiyong-wx/toutiao.git
git@gitee.com:liu-zhiyong-wx/toutiao.git
liu-zhiyong-wx
toutiao
vue2基于vant组件的移动端头条新闻项目
master

搜索帮助