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

change handlebars and css transport style #75

Closed
wants to merge 5 commits into from
Closed

change handlebars and css transport style #75

wants to merge 5 commits into from

Conversation

vvenv
Copy link

@vvenv vvenv commented Sep 1, 2014

  • get handlebars and importStyle id in options.alias
  • set default css parser to css2jsParser
  • add importStyle template

@@ -33,18 +36,37 @@ module.exports = function(grunt) {
// define parsers
parsers: {
'.js': [script.jsParser],
'.css': [style.cssParser],
'.css': [style.css2jsParser],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个为什么改了

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在我目前参与的基于 seajs 的项目中,全部都是用 css2jsParser + import-style ,像用 handlebars 一样用 import-style

css 的其它处理,都交给less(或 sass)。
所以我将默认改为css2jsParser。

@vvenv
Copy link
Author

vvenv commented Sep 1, 2014

发现单元测试没通过,编写中。

@vvenv vvenv closed this Oct 3, 2024
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

Successfully merging this pull request may close these issues.

2 participants