12345678910111213141516171819202122232425 |
- const path = require("path");
- // const webpack = require("webpack");
- function resolve(dir) {
- return path.join(__dirname, dir);
- }
- const port = 8080;
- module.exports = {
- lintOnSave: process.env.NODE_ENV === "producut",
- css: {
- loaderOptions: {
- less: {
- modifyVars: {
- // red: "#03a9f4",
- // blue: "#3eaf7c",
- // orange: "#f08d49",
- // "text-color": "#111",
- // "active-color": "#B4E7A0",
- // 或者可以通过 less 文件覆盖(文件路径为绝对路径)
- hack: `true; @import "${resolve("./src/style/modifyVars.less")}";`
- }
- }
- }
- }
- };
|