andreypopp/webpack-package-loaders-plugin

Handle loader query in JSON object format

Open

#3 创建于 2016年3月23日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)JavaScript (4 fork)github user discovery
enhancementhelp wanted

仓库指标

Star
 (25 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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.

贡献者指南