Giter Site home page Giter Site logo

Comments (5)

zhangyuang avatar zhangyuang commented on August 16, 2024

from ssr.

hululuuuuu avatar hululuuuuu commented on August 16, 2024

OK ,下周再看也不急
更详细的报错大概是这样的,我一开始怀疑是 vite ,不过我看文档config.ts 暴露的可配置接口只有这些,就没深入了
image

from ssr.

zhangyuang avatar zhangyuang commented on August 16, 2024

vite场景用法如下

import type { UserConfig } from 'ssr-types'

const userConfig: UserConfig = {
  css: () => {
    return {
      loaderOptions: {
        less: {
         
          modifyVars: {
            'primary-color': '#000'
          }
        }
      }
    }
  }
}

export { userConfig }

from ssr.

zhangyuang avatar zhangyuang commented on August 16, 2024

最新版本兼容lessOptions入参

from ssr.

hululuuuuu avatar hululuuuuu commented on August 16, 2024

OK 我这边试过了 没问题。

from ssr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.