Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我把less文件放在static里面的less文件夹下,引入不编译 #79

Open
ciming opened this issue May 2, 2018 · 1 comment
Open

Comments

@ciming
Copy link

ciming commented May 2, 2018

我是这样引入的
static-conf.js

module.exports = {
  staticPath: {
    'common.css': [
      'static/less/index.less'
    ]
  }
};

然后
<%= getCSS('static/less/index.css') %>

@luckyadam
Copy link
Member

改成这样试试呢

module.exports = {
  staticPath: {
    'common.css': [
      'static/less/index.css'
    ]
  }
};

然后引用

<%= getCSS('common.css') %>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants