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

configure wiredep from package.json #2

Open
creativekidney opened this issue Sep 27, 2016 · 0 comments
Open

configure wiredep from package.json #2

creativekidney opened this issue Sep 27, 2016 · 0 comments

Comments

@creativekidney
Copy link

creativekidney commented Sep 27, 2016

I'm currently working on a site that uses npm as the task runner, and I'm attempting to use wiredep-cli to inject our main app.css with bower dependencies.

We are using postcss so our files are simply .css but it seems wiredep only recognises sass, scss, less and styl filetypes. I've seen that I can configure this, but there doesn't seem to be an option to do so from the command line.

Is this a possibility? Basically I'd like to configure the filetypes option with:

 css: {
    block: regex.block['//'],
    detect: {
      css: /@import\s(.+css)/gi,
      sass: /@import\s(.+sass)/gi,
      scss: /@import\s(.+scss)/gi
    },
    replace: {
      css: '@import "{{filePath}}"',
      sass: '@import "{{filePath}}"',
      scss: '@import "{{filePath}}"'
    }
  }

Any help appreciated!

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

1 participant