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

feat: support extra less options in dev and build mode #112

Merged
merged 3 commits into from
Sep 26, 2019

Conversation

focus7eleven
Copy link
Member

@focus7eleven focus7eleven commented Sep 25, 2019

{
  extraLessOptions: {
    modifyVars: {
      'primary-color': 'red',
       // or
      'hack': `true; @import "your-less-file-path.less";`, // Override with less file
    }
  }
}

@sorrycc
Copy link
Member

sorrycc commented Sep 25, 2019

已经有了 lessInBabelMode,配置项用 lessInRollupMode 吧,然后加个用了 modifyVars 的用例。

@focus7eleven
Copy link
Member Author

updated

@sorrycc sorrycc merged commit c91df2b into master Sep 26, 2019
@delete-merged-branch delete-merged-branch bot deleted the feat/modify-less-vars branch September 26, 2019 12:04
@sorrycc
Copy link
Member

sorrycc commented Sep 26, 2019

  • father-build@1.11.0
  • father@2.21.0

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

Successfully merging this pull request may close these issues.

2 participants