Skip to content

feat(plugins/import): add @import filter support (options.import) #656

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

Merged
merged 2 commits into from
Jan 8, 2018

Conversation

michael-ciniawsky
Copy link
Member

@michael-ciniawsky michael-ciniawsky commented Jan 5, 2018

Issues

  • None

Notable Changes

import

{Boolean} (default: true)

webpack.config.js

{
  loader: 'css-loader',
  options: {
    import: false
  }
}

{String}

webpack.config.js

{
  loader: 'css-loader',
  options: {
    import: 'filter'
  }
}

{RegExp}

webpack.config.js

{
  loader: 'css-loader',
  options: {
    import: /filter/
  }
}

{Function}

webpack.config.js

{
  loader: 'css-loader',
  options: {
    import (url) {
      return /filter/.test(url)
    }
  }
}

@michael-ciniawsky michael-ciniawsky added this to the 1.0.0 milestone Jan 5, 2018
@michael-ciniawsky michael-ciniawsky changed the title feat(import): add @import filter support (options.import) [WIP] feat(import): add @import filter support (options.import) Jan 5, 2018
@michael-ciniawsky michael-ciniawsky changed the title [WIP] feat(import): add @import filter support (options.import) feat(plugins/import): add @import filter support (options.import) Jan 8, 2018
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.

1 participant