@webpack-rewired/core
merge webpack config
Last updated 22 days ago by zhengjitf .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @webpack-rewired/core 
SYNC missed versions from official npm registry.

Cli

development

webpack-rewired start

production

webpack-rewired build [--report|--statsJson]

参数:

  • report: 应用webpack-bundle-analyzer,插件的配置读取.rewiredrc文件中的analyzer
  • statsJson:生成stats.json文件用于分析工具进行 bundle 分析

Config

/* .rewiredrc.js  */

module.exports = {
  /** 加载内置的配置包@webpack-rewired/* */
  builtIns: ['react'],
  /** 配置处理函数 */
  overrides: [
    (webpackConfig, env) => {
      return webpackConfig
    },
  ],
  /** sass-resources-loader配置 */
  sassResources: {
    resources: [],
  },
  /** dll功能的配置 */
  dll: {
    dev: false,
    entry: {
      vendor: ['react', 'react-dom'],
    },
  },
  /** webpack-bundle-analyzer配置 */
  analyzer: {},
  /** devServer配置 */
  devServer: {
    proxy: {},
  },
  /** DefinePlugin */
  define: {},
  /** svg-sprite-loader配置 */
  // 默认配置: { symbolId: 'icon-[name]' }
  svgSprite: {},
}

Features

  • eslint:通过项目根目录的 eslint 配置文件开启
  • typescript:通过项目根目录的tsconfig.json配置文件开启
  • dll:通过.rewiredrc.js配置文件中的dll项开启

Todo

  • [x] webpack-bundle-analyzer
  • [x] dll: 使用autodll-webpack-plugin实现
  • [ ] hard-source-webpack-plugin
  • [ ] scope hosting

Current Tags

  • 0.2.26                                ...           latest (22 days ago)

32 Versions

  • 0.2.26                                ...           22 days ago
  • 0.2.25                                ...           22 days ago
  • 0.2.24                                ...           2 months ago
  • 0.2.23                                ...           2 months ago
  • 0.2.22                                ...           2 months ago
  • 0.2.21                                ...           2 months ago
  • 0.2.20                                ...           2 months ago
  • 0.2.19                                ...           2 months ago
  • 0.2.18                                ...           2 months ago
  • 0.2.17                                ...           2 months ago
  • 0.2.16                                ...           2 months ago
  • 0.2.15                                ...           2 months ago
  • 0.2.14                                ...           3 months ago
  • 0.2.13                                ...           3 months ago
  • 0.2.11                                ...           3 months ago
  • 0.2.7                                ...           4 months ago
  • 0.2.6                                ...           4 months ago
  • 0.2.5                                ...           4 months ago
  • 0.2.4                                ...           4 months ago
  • 0.2.3                                ...           4 months ago
  • 0.2.2                                ...           4 months ago
  • 0.2.1                                ...           5 months ago
  • 0.1.0                                ...           5 months ago
  • 0.0.11                                ...           5 months ago
  • 0.0.10                                ...           5 months ago
  • 0.0.8                                ...           8 months ago
  • 0.0.7                                ...           8 months ago
  • 0.0.6                                ...           8 months ago
  • 0.0.5                                ...           8 months ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 46
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |