Giter Club home page Giter Club logo

Comments (9)

akFace avatar akFace commented on May 28, 2024

这个支持的

from eeui.

akFace avatar akFace commented on May 28, 2024
1、安装 npm install less less-loader --save

2、使用
<style scoped lang="less">
</style>

注:weex不支持嵌套写法

错误写法
.box{
  background-color: pink;
  .a {
    color: red;
 }
}
正确写法
.box{
  background-color: pink;
}
.a {
    color: red;
 }

from eeui.

pecopeco avatar pecopeco commented on May 28, 2024
1、安装 npm install less less-loader --save

2、使用
<style scoped lang="less">
</style>

注:weex不支持嵌套写法

错误写法
.box{
  background-color: pink;
  .a {
    color: red;
 }
}
正确写法
.box{
  background-color: pink;
}
.a {
    color: red;
 }

请问如何引入 pug ?

from eeui.

akFace avatar akFace commented on May 28, 2024

没用过pug 😄

from eeui.

neterji avatar neterji commented on May 28, 2024

1、安装 npm install less less-loader --save

2、使用

<style scoped lang="less"> </style>


注:weex不支持嵌套写法
```css
错误写法
.box{
  background-color: pink;
  .a {
    color: red;
 }
}
正确写法
.box{
  background-color: pink;
}
.a {
    color: red;
 }

那和直接写css有啥区别?

from eeui.

akFace avatar akFace commented on May 28, 2024

@neterji 可以用来做公共类、公共样式

from eeui.

pecopeco avatar pecopeco commented on May 28, 2024

自己修改 webpack.config.js 添加 rules会报错

module.exports = {
  module: {
    rules: [
      { test: /\.pug$/, loader: "pug-plain-loader" }
    ]
  }
};
Error: Rule can only have one result source (provided use and loader) in {
  "test": {},
  "use": [
    {
      "loader": "babel-loader",
      "options": {
        "presets": [
          "@babel/react",
          "@babel/env"
        ],
        "plugins": [
          [
            "@babel/transform-runtime",
            {
              "helpers": false
            }
          ],
          [
            "component",
            {
              "libraryName": "weex-ui",
              "libDir": "packages",
              "style": false
            },
            "weex-ui"
          ],
          [
            "component",
            {
              "libraryName": "eeui-design",
              "libDir": "packages",
              "style": false
            },
            "eeui-design"
          ]
        ]
      }
    }
  ],
  "loader": "pug--plain-loader"
}

from eeui.

monkey01127 avatar monkey01127 commented on May 28, 2024

eeui 如何引入Pug,能否给出大致的方式呀?

from eeui.

pecopeco avatar pecopeco commented on May 28, 2024

eeui 如何引入Pug,能否给出大致的方式呀?

我在上面已经说得很清楚了吧,安装完就可以直接用,不用引入

from eeui.

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.