andreypopp/webpack-package-loaders-plugin

Handle loader query in JSON object format

Open

#3 aperta il 23 mar 2016

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (4 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (25 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor