Skip to content

configure wiredep from package.json #2

Description

@creativekidney

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!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions