andreypopp/webpack-package-loaders-plugin

Handle loader query in JSON object format

Open

#3 aberto em 23 de mar. de 2016

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (4 forks)github user discovery
enhancementhelp wanted

Métricas do repositório

Stars
 (25 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

It would be nice if this plugin supported the object-style configuration of loader queries. For example:

{
  "webpack": {
    "loaders": [{
      "loader": "babel-loader",
      "test": "**/*.js",
      "query": {
        "plugins": [
          "transform-object-rest-spread"
        ],
        "presets": [
          "es2015",
          "react"
        ]
      }
    }]
  }
}

If this is something you'd like to support, I could take a stab at the implementation.

Guia do colaborador