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

Allow the pre-processors to be configured #20

Open
3rd-Eden opened this issue Jun 4, 2012 · 1 comment
Open

Allow the pre-processors to be configured #20

3rd-Eden opened this issue Jun 4, 2012 · 1 comment

Comments

@3rd-Eden
Copy link
Member

3rd-Eden commented Jun 4, 2012

Currenlty it's not possible to supply the pre-processor modules with any options, making it less flexible then needed. We can add an extra section to the square.json file where you can specify options that need to be passed in to the pre-processors..

eg:

{
  configuration: {
     pre-processors: {
       stylus: {
          options: 'for stylus' 
      }
    }
  }
}

See #19 for the conversation

@3rd-Eden
Copy link
Member Author

3rd-Eden commented Jun 6, 2012

Decided to go with 2 different configuration options, as you might not want to have all your stylus files to be changed to data-uri files. So instead you can now add:

{
  configuration: {},
  bundle: {
    'file.styl': {
       'pre:stylus': {
           datauri: true
       }
    }
  }
}

Where pre: is just an indication that is used for the pre-processors and stylus is the actual npm package name.

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

No branches or pull requests

1 participant